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

[PATCH/WIP 6/8] rebase: remove unused function

From
Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Date
Mar 18, 2015, 09:55 UTC
Message-ID
<1426672547-11369-7-git-send-email-pclouds@gmail.com>
In-Reply-To
<1426672547-11369-1-git-send-email-pclouds@gmail.com>
git-rebase.sh is no longer a dependency for rebase subscripts. This
function is only used by subscripts only, which now becomes useless.
---
 git-rebase.sh | 13 -------------
 1 file changed, 13 deletions(-)
diff --git a/git-rebase.sh b/git-rebase.sh
index 86119e7..d941239 100755
--- a/git-rebase.sh
+++ b/git-rebase.sh
@@ -102,19 +102,6 @@ read_basic_state () {
 		allow_rerere_autoupdate="$(cat "$state_dir"/allow_rerere_autoupdate)"
 }
 
-write_basic_state () {
-	echo "$head_name" > "$state_dir"/head-name &&
-	echo "$onto" > "$state_dir"/onto &&
-	echo "$orig_head" > "$state_dir"/orig-head &&
-	echo "$GIT_QUIET" > "$state_dir"/quiet &&
-	test t = "$verbose" && : > "$state_dir"/verbose
-	test -n "$strategy" && echo "$strategy" > "$state_dir"/strategy
-	test -n "$strategy_opts" && echo "$strategy_opts" > \
-		"$state_dir"/strategy_opts
-	test -n "$allow_rerere_autoupdate" && echo "$allow_rerere_autoupdate" > \
-		"$state_dir"/allow_rerere_autoupdate
-}
-
 output () {
 	case "$verbose" in
 	'')
-- 
2.3.0.rc1.137.g477eb31
Previous: Nguyễn Thái Ngọc DuyNext: Nguyễn Thái Ngọc Duy
Message 7 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.