Skip to content

Instantly share code, notes, and snippets.

@garybernhardt
Created December 1, 2013 19:46
Show Gist options
  • Save garybernhardt/7739887 to your computer and use it in GitHub Desktop.
Save garybernhardt/7739887 to your computer and use it in GitHub Desktop.
inbox_blobs() {
git ls-tree -r master | grep 'INBOX' | awk '{print $3}' | sort
}
diff <(cd ../Gmail && inbox_blobs) <(inbox_blobs) | grep '<\|>' | while read marker hash; do
echo "$marker $(git show $hash | grep -m 1 '^Subject:')"
done | sort
< Subject: Re: LLC intake form
< Subject: Mail dates are wrong after IMAP sync [Ticket Id: 401841]
> Subject: IMAP Migration report
> Subject: Welcome to NDC London - 4-6 December
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment