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

[PATCH 1/1] git-rebase--interactive.sh: fix trailing spaces on empty $todo

From
Shulhan <m.shulhan@gmail.com>
Date
Sep 18, 2018, 13:44 UTC
Message-ID
<20180918134412.32766-2-m.shulhan@gmail.com>
In-Reply-To
<20180918134412.32766-1-m.shulhan@gmail.com>

When issuing interactive rebase, git will open a text editor with list of commits to rebase and documentation on how to edit it. At the end of documentation it display,

  #	However, if you remove everything, the rebase will be aborted.
  #
  #\t
  # Note that empty commits are commented out
The "\t" is white space tab.
This commit remove the empty tab at the last two line.
---
 git-rebase--interactive.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh
index 299ded213..0bf9eefad 100644
--- a/git-rebase--interactive.sh
+++ b/git-rebase--interactive.sh
@@ -224,7 +224,7 @@ EOF
 	gettext "
 	However, if you remove everything, the rebase will be aborted.
 
-	" | git stripspace --comment-lines >>"$todo"
+" | git stripspace --comment-lines >>"$todo"
 
 	if test -z "$keep_empty"
 	then
-- 
2.19.0.446.g26223adc4
Previous: ShulhanNext: Junio C Hamano
Message 2 of 3 in “git-rebase--interactive.sh: fix trailing spaces on empty $todo”
  1. 0/1 git-rebase--interactive.sh: fix trailing spaces on empty $todoShulhan, Sep 18, 2018
  2. 1/1 git-rebase--interactive.sh: fix trailing spaces on empty $todoShulhan, Sep 18, 2018
  3. Junio C HamanoSep 20, 2018

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.