From: Ramkumar Ramachandra <artagnon@gmail.com>
To: Git List <git@vger.kernel.org>
Cc: Junio C Hamano <gitster@pobox.com>
Subject: [PATCH 5/6] stash: tweak error message in store_stash ()
Date: Mon, 13 May 2013 18:15:53 +0530 [thread overview]
Message-ID: <1368449154-21882-6-git-send-email-artagnon@gmail.com> (raw)
In-Reply-To: <1368449154-21882-1-git-send-email-artagnon@gmail.com>
When the update-ref invocation fails, store_stash currently prints:
Cannot save the current status
This is not very useful for diagnosing the problem. Instead, print:
Cannot store 688268c4254ca5dc6e2effa83bae4f0dbbe75e5b
so we can inspect the object and analyze why the update-ref failed.
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
---
git-stash.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/git-stash.sh b/git-stash.sh
index 1d483f5..24d72fc 100755
--- a/git-stash.sh
+++ b/git-stash.sh
@@ -167,7 +167,7 @@ store_stash () {
# Make sure the reflog for stash is kept.
: >>"$GIT_DIR/logs/$ref_stash"
git update-ref -m "$stash_msg" $ref_stash $w_commit ||
- die "$(gettext "Cannot save the current status")"
+ die "$(gettext "Cannot store $w_commit")"
}
save_stash () {
--
1.8.3.rc1.57.g4ac1522
next prev parent reply other threads:[~2013-05-13 12:44 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-13 12:45 [PATCH 0/6] Get stash to help rebase.autostash Ramkumar Ramachandra
2013-05-13 12:45 ` [PATCH 1/6] Documentation/stash: correct synopsis for create Ramkumar Ramachandra
2013-05-13 12:45 ` [PATCH 2/6] Documentation/stash: document short form -p in synopsis Ramkumar Ramachandra
2013-05-13 12:45 ` [PATCH 3/6] stash: simplify option parser for create Ramkumar Ramachandra
2013-05-13 14:34 ` Junio C Hamano
2013-05-13 14:59 ` Ramkumar Ramachandra
2013-05-13 12:45 ` [PATCH 4/6] stash: introduce 'git stash store' Ramkumar Ramachandra
2013-05-13 14:40 ` Junio C Hamano
2013-05-13 15:02 ` Ramkumar Ramachandra
2013-05-13 15:49 ` Junio C Hamano
2013-05-13 17:15 ` Ramkumar Ramachandra
2013-05-13 17:29 ` Junio C Hamano
2013-05-13 18:09 ` Ramkumar Ramachandra
2013-05-13 18:35 ` Junio C Hamano
2013-05-13 18:45 ` Ramkumar Ramachandra
2013-05-13 19:16 ` Junio C Hamano
2013-05-13 19:25 ` Ramkumar Ramachandra
2013-05-13 18:15 ` Ramkumar Ramachandra
2013-05-13 12:45 ` Ramkumar Ramachandra [this message]
2013-05-13 14:42 ` [PATCH 5/6] stash: tweak error message in store_stash () Junio C Hamano
2013-05-13 12:45 ` [PATCH 6/6] rebase: use 'git stash store' to simplify logic Ramkumar Ramachandra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1368449154-21882-6-git-send-email-artagnon@gmail.com \
--to=artagnon@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).