Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Teach revision machinery about --no-walk
[gitweb.git]
/
revision.c
diff --git
a/revision.c
b/revision.c
index 00b75bc10b53b0c64b14fc1d9111d5f4e1db3af5..16f35c7c18713aab991f04f6dcb787a73d15957d 100644
(file)
--- a/
revision.c
+++ b/
revision.c
@@
-1191,6
+1191,14
@@
int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch
revs->reverse ^= 1;
continue;
}
+ if (!strcmp(arg, "--no-walk")) {
+ revs->no_walk = 1;
+ continue;
+ }
+ if (!strcmp(arg, "--do-walk")) {
+ revs->no_walk = 0;
+ continue;
+ }
opts = diff_opt_parse(&revs->diffopt, argv+i, argc-i);
if (opts > 0) {