Skip to content

Commit

Permalink
stash: end commit log with a newline
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Uwe Kleine-König authored and Junio C Hamano committed Jul 4, 2007
1 parent 14a4091 commit 843103d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-stash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit 843103d

Please sign in to comment.