Skip to content

Instantly share code, notes, and snippets.

@esycat
Last active June 16, 2017 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esycat/18a8ea870b69816d2193ec0c0dc6571a to your computer and use it in GitHub Desktop.
Save esycat/18a8ea870b69816d2193ec0c0dc6571a to your computer and use it in GitHub Desktop.
Find the number of unique commits since the given date on all remote heads
# N.B. The uniquenes is determined based on `git-patch-id` that is simply a hash of the diff
since="2016-07-01"
for c in $(git log --since="${since}" --remotes --format="%H") ; do git show $c | git patch-id ; done | sort -u | wc -l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment