From: Junio C Hamano Date: Fri, 26 Jan 2007 23:09:02 +0000 (-0800) Subject: git-merge: leave sensible reflog message when used as the first level UI. X-Git-Tag: v1.5.0-rc3~48 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=7f9acb2a16473e5ba6d44231d2fc844ca8bb9817;p=git.git git-merge: leave sensible reflog message when used as the first level UI. It used to throw potentially multi-line log message at reflog. Just record the heads that were given to be merged at the command line and the action. Revert the removal of the check in "git-update-ref -m" I made earlier which was only a work-around for this. Signed-off-by: Junio C Hamano --- diff --git a/builtin-update-ref.c b/builtin-update-ref.c index f2506fa97..b34e5987d 100644 --- a/builtin-update-ref.c +++ b/builtin-update-ref.c @@ -23,6 +23,8 @@ int cmd_update_ref(int argc, const char **argv, const char *prefix) msg = argv[++i]; if (!*msg) die("Refusing to perform update with empty message."); + if (strchr(msg, '\n')) + die("Refusing to perform update with \\n in message."); continue; } if (!strcmp("-d", argv[i])) { diff --git a/git-merge.sh b/git-merge.sh index 7b590268e..656869101 100755 --- a/git-merge.sh +++ b/git-merge.sh @@ -7,7 +7,6 @@ USAGE='[-n] [--no-commit] [--squash] [-s ] [-m=]