From: Ramkumar Ramachandra <artagnon@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: Git List <git@vger.kernel.org>
Subject: [PATCH] fixup! rebase: implement --[no-]autostash and rebase.autostash
Date: Wed, 29 May 2013 16:41:20 +0530 [thread overview]
Message-ID: <1369825880-8608-1-git-send-email-artagnon@gmail.com> (raw)
In-Reply-To: <7vli6yydmv.fsf@alter.siamese.dyndns.org>
For rr/rebase-autostash, which is stalled in pu. See $gmane/225689.
This is a super-minor fix anyway: if you disagree with something, change
it; there's no need to ask me.
As for the follow-up introducing a 'stash store', I will submit it in
good time: there's no hurry. I'm working on some other interesting
things in the meantime (see hot-branch and @{push}).
Thanks.
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
---
git-rebase.sh | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/git-rebase.sh b/git-rebase.sh
index 709ef6b..5906757 100755
--- a/git-rebase.sh
+++ b/git-rebase.sh
@@ -151,16 +151,16 @@ finish_rebase () {
stash_sha1=$(cat "$state_dir/autostash")
if git stash apply $stash_sha1 2>&1 >/dev/null
then
- echo "Applied autostash"
+ echo "$(gettext 'Applied autostash.')"
else
ref_stash=refs/stash &&
: >>"$GIT_DIR/logs/$ref_stash" &&
git update-ref -m "autostash" $ref_stash $stash_sha1 \
|| die "$(eval_gettext 'Cannot store $stash_sha1')"
- echo "
-$(gettext 'Applying autostash resulted in conflicts.
+ gettext 'Applying autostash resulted in conflicts.
Your changes are safe in the stash.
-You can apply or drop it at any time.')"
+You can run "git stash pop" or "git stash drop" it at any time.
+'
fi
fi
git gc --auto &&
--
1.8.3.rc3.11.geb5ebca
next prev parent reply other threads:[~2013-05-29 11:12 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-28 21:54 What's cooking in git.git (May 2013, #08; Tue, 28) Junio C Hamano
2013-05-29 2:55 ` Felipe Contreras
2013-05-29 17:29 ` Junio C Hamano
2013-05-29 18:46 ` Felipe Contreras
2013-05-29 11:11 ` Ramkumar Ramachandra [this message]
2013-05-29 17:32 ` [PATCH] fixup! rebase: implement --[no-]autostash and rebase.autostash Junio C Hamano
2013-05-29 17:38 ` Ramkumar Ramachandra
2013-05-29 17:38 ` Matthieu Moy
2013-05-29 11:27 ` What's cooking in git.git (May 2013, #08; Tue, 28) Ramkumar Ramachandra
2013-05-29 17:45 ` Junio C Hamano
2013-05-29 18:15 ` Ramkumar Ramachandra
2013-05-29 23:44 ` Ramsay Jones
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=1369825880-8608-1-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).