@matheusbsbs / matheus-bagliano / commits / 843103d693
Fork 0

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 <ukleinek@informatik.uni-freiburg.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Uwe Kleine-König committed Jul 3, 2007 at 10:59 UTC 843103d69388a5c74ed99753e1c162a66835b04d
1 file changed +1 -1
git-stash.sh
+1 -1
@@ -67,7 +67,7 @@ save_stash () {
67 die "Cannot save the current worktree state"
68
69 # create the stash
70 - w_commit=$(printf 'WIP on %s' "$msg" |
70 + w_commit=$(printf 'WIP on %s\n' "$msg" |
71 git commit-tree $w_tree -p $b_commit -p $i_commit) ||
72 die "Cannot record working tree state"
73