author | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Sun, 26 Jun 2005 18:34:30 +0000 (11:34 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Sun, 26 Jun 2005 18:34:30 +0000 (11:34 -0700) | ||
commit | 042a4ed7c51f909fa53a8fa2f1024a1938812f27 | |
tree | 1a5c5383a49dd5405e725a877ac73f667b5a0261 | tree | snapshot |
parent | 641e1cac73acd67d0b1830dfd7196bca58dffbf2 | commit | diff |
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.
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 | diff | blob | history |