format-patch: fix diff format option implementation
authorJunio C Hamano <junkio@cox.net>
Thu, 29 Jun 2006 07:18:52 +0000 (00:18 -0700)
committerJunio C Hamano <junkio@cox.net>
Thu, 29 Jun 2006 07:19:36 +0000 (00:19 -0700)
The updates forgot to make the diff go recursive.

builtin-log.c

index debddb97a09eba5ba926087f76ebd6da0e258e86..bcd4e5e161d4f8a315aebb8f741b0a1b9870cb71 100644 (file)
@@ -179,7 +179,8 @@ int cmd_format_patch(int argc, const char **argv, char **envp)
        rev.diff = 1;
        rev.combine_merges = 0;
        rev.ignore_merges = 1;
-       rev.diffopt.msg_sep = "---\n";
+       rev.diffopt.msg_sep = "";
+       rev.diffopt.recursive = 1;
 
        git_config(git_format_config);
        rev.extra_headers = extra_headers;