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>
This commit is contained in:
parent
14a4091c16
commit
843103d693
@ -67,7 +67,7 @@ save_stash () {
|
|||||||
die "Cannot save the current worktree state"
|
die "Cannot save the current worktree state"
|
||||||
|
|
||||||
# create the stash
|
# 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) ||
|
git commit-tree $w_tree -p $b_commit -p $i_commit) ||
|
||||||
die "Cannot record working tree state"
|
die "Cannot record working tree state"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user