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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux