]> asedeno.scripts.mit.edu Git - git.git/blobdiff - builtin-log.c
lib-patch-mode.sh: Fix permission
[git.git] / builtin-log.c
index 750957cfa9d84eb499b3d53687b832d639a72a42..0c2fa0ae2dc3f23cd52d2e8d765805b07262a7d6 100644 (file)
@@ -94,7 +94,7 @@ static void show_early_header(struct rev_info *rev, const char *stage, int nr)
        printf("Final output: %d %s\n", nr, stage);
 }
 
-struct itimerval early_output_timer;
+static struct itimerval early_output_timer;
 
 static void log_show_early(struct rev_info *revs, struct commit_list *list)
 {
@@ -977,7 +977,7 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)
                strbuf_addch(&buf, '\n');
        }
 
-       rev.extra_headers = strbuf_detach(&buf, 0);
+       rev.extra_headers = strbuf_detach(&buf, NULL);
 
        if (start_number < 0)
                start_number = 1;