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

[PATCH/WIP 7/8] rebase: move resolvemsg to rebase--* scripts

From
Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Date
Mar 18, 2015, 09:55 UTC
Message-ID
<1426672547-11369-8-git-send-email-pclouds@gmail.com>
In-Reply-To
<1426672547-11369-1-git-send-email-pclouds@gmail.com>
---
 git-rebase--am.sh          | 5 +++++
 git-rebase--interactive.sh | 5 +++++
 git-rebase--merge.sh       | 5 +++++
 git-rebase.sh              | 7 +------
 4 files changed, 16 insertions(+), 6 deletions(-)
diff --git a/git-rebase--am.sh b/git-rebase--am.sh
index ab84330..399956b 100755
--- a/git-rebase--am.sh
+++ b/git-rebase--am.sh
@@ -9,6 +9,11 @@ set_reflog_action rebase
 require_work_tree_exists
 
 GIT_QUIET=$git_quiet
+resolvemsg="
+$(gettext 'When you have resolved this problem, run "git rebase --continue".
+If you prefer to skip this patch, run "git rebase --skip" instead.
+To check out the original branch and stop rebasing, run "git rebase --abort".')
+"
 
 write_basic_state () {
 	echo "$head_name" > "$state_dir"/head-name &&
diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh
index b1c71a9..337dec3 100755
--- a/git-rebase--interactive.sh
+++ b/git-rebase--interactive.sh
@@ -16,6 +16,11 @@ set_reflog_action "rebase -i ($action)"
 require_work_tree_exists
 
 GIT_QUIET=$git_quiet
+resolvemsg="
+$(gettext 'When you have resolved this problem, run "git rebase --continue".
+If you prefer to skip this patch, run "git rebase --skip" instead.
+To check out the original branch and stop rebasing, run "git rebase --abort".')
+"
 
 # The file containing rebase commands, comments, and empty lines.
 # This file is created by "git rebase -i" then edited by the user.  As
diff --git a/git-rebase--merge.sh b/git-rebase--merge.sh
index baaef41..7e240be 100755
--- a/git-rebase--merge.sh
+++ b/git-rebase--merge.sh
@@ -9,6 +9,11 @@ set_reflog_action rebase
 require_work_tree_exists
 
 GIT_QUIET=$git_quiet
+resolvemsg="
+$(gettext 'When you have resolved this problem, run "git rebase --continue".
+If you prefer to skip this patch, run "git rebase --skip" instead.
+To check out the original branch and stop rebasing, run "git rebase --abort".')
+"
 
 prec=4
 
diff --git a/git-rebase.sh b/git-rebase.sh
index d941239..38530e8 100755
--- a/git-rebase.sh
+++ b/git-rebase.sh
@@ -49,11 +49,6 @@ cd_to_toplevel
 LF='
 '
 ok_to_skip_pre_rebase=
-resolvemsg="
-$(gettext 'When you have resolved this problem, run "git rebase --continue".
-If you prefer to skip this patch, run "git rebase --skip" instead.
-To check out the original branch and stop rebasing, run "git rebase --abort".')
-"
 unset onto
 cmd=
 strategy=
@@ -139,7 +134,7 @@ run_specific_rebase () {
 	git_quiet=$GIT_QUIET
 	export GIT_PAGER
 	export action allow_rerere_autoupdate git_am_opt git_quiet head_name keep_empty
-	export onto orig_head rebase_root resolvemsg revisions
+	export onto orig_head rebase_root revisions
 	export state_dir verbose strategy strategy_opts
 	export autosquash cmd force_rebase preserve_merges squash_onto switch_to upstream
 	exec git-rebase--$type
-- 
2.3.0.rc1.137.g477eb31
Previous: Nguyễn Thái Ngọc DuyNext: Nguyễn Thái Ngọc Duy
Message 8 of 9 in “Convert git-rebase.sh to C”
  1. 0/8 Convert git-rebase.sh to CNguyễn Thái Ngọc Duy, Mar 18, 2015
  2. 1/8 strbuf: add and use strbuf_read_file_or_die()Nguyễn Thái Ngọc Duy, Mar 18, 2015
  3. 2/8 Move reset_tree from builtin/checkout.c to unpack-trees.cNguyễn Thái Ngọc Duy, Mar 18, 2015
  4. 3/8 rebase: turn rebase--am into a separate programNguyễn Thái Ngọc Duy, Mar 18, 2015
  5. 4/8 rebase: turn rebase--merge into a separate programNguyễn Thái Ngọc Duy, Mar 18, 2015
  6. 5/8 rebase: turn rebase--interactive into a separate programNguyễn Thái Ngọc Duy, Mar 18, 2015
  7. 6/8 rebase: remove unused functionNguyễn Thái Ngọc Duy, Mar 18, 2015
  8. 7/8 rebase: move resolvemsg to rebase--* scriptsNguyễn Thái Ngọc Duy, Mar 18, 2015
  9. 8/8 Build in rebaseNguyễn Thái Ngọc Duy, Mar 18, 2015

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.