[PATCH] diff-tree -p implies diff-tree -p -r
authorJunio C Hamano <junkio@cox.net>
Wed, 27 Apr 2005 23:25:59 +0000 (16:25 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 27 Apr 2005 23:25:59 +0000 (16:25 -0700)
This makes diff-tree -p imply recursive behaviour.

Other commands in the family always takes a flat universe view
so this is not even needed.

Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
diff-tree.c

index cbea28d6ead4c237a6dc40ee63c0c856d5f3554b..5a1ad34652fcda63a37c3aeb55c0231f1be69bdd 100644 (file)
@@ -269,7 +269,7 @@ int main(int argc, char **argv)
                        continue;
                }
                if (!strcmp(arg, "-p")) {
-                       generate_patch = 1;
+                       recursive = generate_patch = 1;
                        continue;
                }
                if (!strcmp(arg, "-z")) {