Skip to content

Instantly share code, notes, and snippets.

@lucs
Last active May 31, 2020 19:26
Show Gist options
  • Save lucs/225250 to your computer and use it in GitHub Desktop.
Save lucs/225250 to your computer and use it in GitHub Desktop.
The following two commands were run on the git source (cloned from
git://git.kernel.org/pub/scm/git/git.git)
$ git rev-list bf0c6e83
bf0c6e839c692142784caf07b523cd69442e57a5
e497ea2a9b6c378f01d092c210af20cbee762475
8bc9a0c769ac1df7820f2dbf8f7b7d64835e3c68
e83c5163316f89bfbde7d9ab23ca2e25604af290
$ git rev-list bf0c6e83 ^8bc9a0c76
bf0c6e839c692142784caf07b523cd69442e57a5
8bc9a0c769ac1df7820f2dbf8f7b7d64835e3c68
e83c5163316f89bfbde7d9ab23ca2e25604af290
I expected the latter not to list e83c51633. What am I misunderstanding?
(Those commits are way at the beginning of the project, the first four
commits.)
(edit) Solution: my shell was mishandling the '^'. This works correctly:
$ git rev-list bf0c6e83 \^8bc9a0c76
bf0c6e839c692142784caf07b523cd69442e57a5
e497ea2a9b6c378f01d092c210af20cbee762475
Thanks jast! (on git#freenode)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment