summaryrefslogtreecommitdiffstats
path: root/revision.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-11-08 01:33:59 +0100
committerJunio C Hamano <junkio@cox.net>2006-11-08 01:33:59 +0100
commit24ad8e0ce23d08d28a5d664ab6164b10125146ce (patch)
treeedcba1269b22d79a04558b83f47617f3ecc2acd0 /revision.c
parentgit-pack-objects progress flag documentation and cleanup (diff)
parentgit-pickaxe: allow "-L <something>,+N" (diff)
downloadgit-24ad8e0ce23d08d28a5d664ab6164b10125146ce.tar.xz
git-24ad8e0ce23d08d28a5d664ab6164b10125146ce.zip
Merge branch 'jc/pickaxe'
Diffstat (limited to 'revision.c')
-rw-r--r--revision.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/revision.c b/revision.c
index 3dbc26c49c..993bb668a2 100644
--- a/revision.c
+++ b/revision.c
@@ -657,6 +657,13 @@ int handle_revision_arg(const char *arg, struct rev_info *revs,
return 0;
*dotdot = '^';
}
+ dotdot = strstr(arg, "^!");
+ if (dotdot && !dotdot[2]) {
+ *dotdot = 0;
+ if (!add_parents_only(revs, arg, flags ^ UNINTERESTING))
+ *dotdot = '^';
+ }
+
local_flags = 0;
if (*arg == '^') {
local_flags = UNINTERESTING;