summaryrefslogtreecommitdiff
path: root/git-stash.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-07-04 19:37:17 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-07-04 19:37:17 (GMT)
commite754e9901a7f0912506c12977a916feddcd1b786 (patch)
tree07b3c8a9a12fbac6218727a3a2e802225b291621 /git-stash.sh
parentd9fb395ae30b50e8a1059338884090b574d8a3e0 (diff)
downloadgit-e754e9901a7f0912506c12977a916feddcd1b786.zip
git-e754e9901a7f0912506c12977a916feddcd1b786.tar.gz
git-e754e9901a7f0912506c12977a916feddcd1b786.tar.bz2
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 9deda44..fa8ae7b 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"
}