From: Uwe Kleine-König Date: Tue, 3 Jul 2007 08:59:06 +0000 (+0200) Subject: stash: end commit log with a newline X-Git-Tag: v1.5.3-rc1~100 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=843103d69388a5c74ed99753e1c162a66835b04d;p=git.git stash: end commit log with a newline If I do git cat-file commit $commitid for a commit created by stash, the next prompt starts directly after the shortlog of HEAD. Signed-off-by: Uwe Kleine-König Signed-off-by: Junio C Hamano --- diff --git a/git-stash.sh b/git-stash.sh index 16979ab41..9deda443e 100755 --- a/git-stash.sh +++ b/git-stash.sh @@ -67,7 +67,7 @@ save_stash () { die "Cannot save the current worktree state" # create the stash - w_commit=$(printf 'WIP on %s' "$msg" | + w_commit=$(printf 'WIP on %s\n' "$msg" | git commit-tree $w_tree -p $b_commit -p $i_commit) || die "Cannot record working tree state"