]> git.ipfire.org Git - thirdparty/git.git/commit - revision.c
Introduce a new revision set operator <rev>^!
authorJunio C Hamano <junkio@cox.net>
Tue, 31 Oct 2006 22:22:34 +0000 (14:22 -0800)
committerJunio C Hamano <junkio@cox.net>
Tue, 31 Oct 2006 22:22:34 +0000 (14:22 -0800)
commit62476c8e331a22e224d87c18830913129f5f303b
treef81057bf5002f016d26a82d055ff694f31ab2e43
parent0d981c67d8bcf4610e165744059c1e9e14609baa
Introduce a new revision set operator <rev>^!

This is a shorthand for "<rev> --not <rev>^@", i.e. "include
this commit but exclude any of its parents".

When a new file $F is introduced by revision $R, this notation
can be used to find a copy-and-paste from existing file in the
parents of that revision without annotating the ancestry of the
lines that were copied from:

git pickaxe -f -C $R^! -- $F

Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-pickaxe.txt
Documentation/git-rev-parse.txt
revision.c