summaryrefslogtreecommitdiff
path: root/git-stash.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-07-04 12:37:17 -0700
committerJunio C Hamano <gitster@pobox.com>2007-07-04 12:37:17 -0700
commite754e9901a7f0912506c12977a916feddcd1b786 (patch)
tree07b3c8a9a12fbac6218727a3a2e802225b291621 /git-stash.sh
parentd9fb395ae30b50e8a1059338884090b574d8a3e0 (diff)
downloadgit-e754e9901a7f0912506c12977a916feddcd1b786.tar.gz
Update reflog message created for stashes
A stash is about a change on top of an existing commit, and not about that commit that happened to be on which the change was created. Match the message we see in "git stash list" with the commit log message to make this clear. Signed-off-by: Junio C Hamano <gitster@pobox.com> Acked-by: Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
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 9deda443ed..fa8ae7bc29 100755
--- a/git-stash.sh
+++ b/git-stash.sh
@@ -71,7 +71,7 @@ save_stash () {
git commit-tree $w_tree -p $b_commit -p $i_commit) ||
die "Cannot record working tree state"
- git update-ref -m "$msg" $ref_stash $w_commit ||
+ git update-ref -m "WIP on $msg" $ref_stash $w_commit ||
die "Cannot save the current status"
printf >&2 'Saved WIP on %s\n' "$msg"
}