summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ea3d988)
raw | patch | inline | side by side (parent: ea3d988)
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | |
Tue, 22 Jul 2008 20:40:41 +0000 (21:40 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 23 Jul 2008 23:57:14 +0000 (16:57 -0700) |
Pierre Habouzit noticed that two variables were not static which should
have been, and that adding "\n\n" is better than adding '\n' twice.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
have been, and that adding "\n\n" is better than adding '\n' twice.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-commit.c | patch | blob | history |
diff --git a/builtin-commit.c b/builtin-commit.c
index 97e64de31228c254f0fe073494dd1f823070bf8e..7434797d1b850b25d13aab8d7aeaf85d02109a61 100644 (file)
--- a/builtin-commit.c
+++ b/builtin-commit.c
static char *cleanup_arg;
static int use_editor = 1, initial_commit, in_merge;
-const char *only_include_assumed;
-struct strbuf message;
+static const char *only_include_assumed;
+static struct strbuf message;
static int opt_parse_m(const struct option *opt, const char *arg, int unset)
{
strbuf_setlen(buf, 0);
else {
strbuf_addstr(buf, arg);
- strbuf_addch(buf, '\n');
- strbuf_addch(buf, '\n');
+ strbuf_addstr(buf, "\n\n");
}
return 0;
}