git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] fixup! rebase: implement --[no-]autostash and rebase.autostash

From
Ramkumar Ramachandra <artagnon@gmail.com>
Date
May 29, 2013, 11:11 UTC
Message-ID
<1369825880-8608-1-git-send-email-artagnon@gmail.com>
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
Previous: Felipe ContrerasNext: Junio C Hamano
Message 5 of 12 in “What's cooking in git.git (May 2013, #08; Tue, 28)”
  1. Junio C HamanoMay 28, 2013
  2. Felipe ContrerasMay 29, 2013
  3. Junio C HamanoMay 29, 2013
  4. Felipe ContrerasMay 29, 2013
  5. fixup! rebase: implement --[no-]autostash and rebase.autostashRamkumar Ramachandra, May 29, 2013
  6. Junio C HamanoMay 29, 2013
  7. Ramkumar RamachandraMay 29, 2013
  8. Matthieu MoyMay 29, 2013
  9. Ramkumar RamachandraMay 29, 2013
  10. Junio C HamanoMay 29, 2013
  11. Ramkumar RamachandraMay 29, 2013
  12. Ramsay JonesMay 29, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.