git-rev-parse: add "--not" flag to mark subsequent heads negative
commit042a4ed7c51f909fa53a8fa2f1024a1938812f27
authorLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 26 Jun 2005 18:34:30 +0000 (26 11:34 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 26 Jun 2005 18:34:30 +0000 (26 11:34 -0700)
tree1a5c5383a49dd5405e725a877ac73f667b5a0261
parent641e1cac73acd67d0b1830dfd7196bca58dffbf2
git-rev-parse: add "--not" flag to mark subsequent heads negative

If you have two lists of heads, and you want to see ones reachable from
list $a but not from list $b, just do

git-rev-list $(git-rev-parse $a --not $b)

which is useful for both bisecting (where "b" would be the list of known
good revisions, and "a" would be the latest found bad head) and for just
seeing what the difference between two sets of heads are if you want to
generate a pack-file for the difference.
rev-parse.c