git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix interactive rebase when the editor saves with CR/LF
@ 2015-10-25 12:49 Johannes Schindelin
  2015-10-25 12:50 ` [PATCH 1/2] Demonstrate rebase fails " Johannes Schindelin
                   ` (2 more replies)
  0 siblings, 3 replies; 31+ messages in thread
From: Johannes Schindelin @ 2015-10-25 12:49 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git, Matthieu Moy, Chad Boles

Chad Boles reported that `git rebase -I` recently started producing
errors when the editor saves files with DOS line endings. The symptom
is:

	Warning: the command isn't recognized in the following line:
	 -

	You can fix this with 'git rebase --edit-todo'.
	Or you can abort the rebase with 'git rebase --abort'.

The real bummer is that simply calling `git rebase --continue` "fixes"
it.

Turns out that we now check whether a single Carriage Return is a valid
command. This new check was introduced recently (1db168ee9, ironically
named "rebase-i: loosen over-eager check_bad_cmd check").

The proposed fix is to teach *all* shell scripts in Git to accept CR as
a field separator. Since LF is already specified as such, it should be
an uncontentious change.


Johannes Schindelin (2):
  Demonstrate rebase fails when the editor saves with CR/LF
  sh-setup: explicitly mark CR as a field separator

 git-sh-setup.sh               |  2 +-
 t/t3404-rebase-interactive.sh | 12 ++++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

-- 
2.1.4

^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2015-10-28 17:12 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-25 12:49 [PATCH 0/2] Fix interactive rebase when the editor saves with CR/LF Johannes Schindelin
2015-10-25 12:50 ` [PATCH 1/2] Demonstrate rebase fails " Johannes Schindelin
2015-10-25 12:50 ` [PATCH 2/2] sh-setup: explicitly mark CR as a field separator Johannes Schindelin
2015-10-25 13:16   ` Philip Oakley
2015-10-25 13:26     ` Johannes Schindelin
     [not found]   ` <20151025131059.GA370025@vauxhall.crustytoothpaste.net>
2015-10-25 13:25     ` Johannes Schindelin
2015-10-25 13:56       ` shell scripting woes, was " Johannes Schindelin
2015-10-25 14:10 ` [PATCH v2 0/2] Fix interactive rebase when the editor saves with CR/LF Johannes Schindelin
2015-10-25 14:10   ` [PATCH v2 1/2] Demonstrate rebase fails " Johannes Schindelin
2015-10-25 14:10   ` [PATCH v2 2/2] sh-setup: explicitly mark CR as a field separator Johannes Schindelin
2015-10-26  9:34     ` Matthieu Moy
2015-10-26 18:31       ` Junio C Hamano
2015-10-26 20:07         ` Junio C Hamano
2015-10-27  9:46           ` Johannes Schindelin
2015-10-27  9:19         ` Johannes Schindelin
2015-10-27 17:46           ` Junio C Hamano
2015-10-27 10:01         ` Matthieu Moy
2015-10-25 19:12   ` [PATCH v2 0/2] Fix interactive rebase when the editor saves with CR/LF Junio C Hamano
2015-10-26 10:43     ` Johannes Schindelin
2015-10-26 19:13       ` Junio C Hamano
2015-10-27  9:34         ` Johannes Schindelin
2015-10-27  9:47   ` [PATCH v3 " Johannes Schindelin
2015-10-27  9:47     ` [PATCH v3 1/2] Demonstrate rebase fails " Johannes Schindelin
2015-10-27  9:47     ` [PATCH v3 2/2] rebase-i: work around Windows CRLF line endings Johannes Schindelin
2015-10-27  9:55       ` Johannes Schindelin
2015-10-27 17:25         ` Junio C Hamano
2015-10-28 14:56           ` Johannes Schindelin
2015-10-28 14:54     ` [PATCH v4 0/2] Fix interactive rebase when the editor saves with CR/LF Johannes Schindelin
2015-10-28 14:54       ` [PATCH v4 1/2] Demonstrate rebase fails " Johannes Schindelin
2015-10-28 14:54       ` [PATCH v4 2/2] rebase-i: work around Windows CRLF line endings Johannes Schindelin
2015-10-28 17:12       ` [PATCH v4 0/2] Fix interactive rebase when the editor saves with CR/LF Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).