aboutsummaryrefslogtreecommitdiff
path: root/git-stash.sh
diff options
context:
space:
mode:
authorUwe Kleine-König <ukleinek@informatik.uni-freiburg.de>2007-07-03 10:59:06 +0200
committerJunio C Hamano <gitster@pobox.com>2007-07-03 19:04:49 -0700
commit843103d69388a5c74ed99753e1c162a66835b04d (patch)
treeeb7e5966b8ef4b258896a1b1050d6c8b9d62c45e /git-stash.sh
parent14a4091c16d14fd461f576e4bf1395da65e5d95e (diff)
downloadgit-843103d69388a5c74ed99753e1c162a66835b04d.tar.gz
git-843103d69388a5c74ed99753e1c162a66835b04d.tar.xz
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>
Diffstat (limited to 'git-stash.sh')
-rwxr-xr-xgit-stash.sh2
1 files changed, 1 insertions, 1 deletions
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"