diff mbox series

[v5,1/3] send-email: terminate --git-completion-helper with LF

Message ID 20210924024606.20542-2-tbperrotta@gmail.com (mailing list archive)
State Superseded
Headers show
Series send-email: shell completion improvements | expand

Commit Message

Thiago Perrotta Sept. 24, 2021, 2:46 a.m. UTC
Unlike other Git subcommands, "git send-email" leaves its output an
incomplete line when "--git-completion-helper" is asked.  Be consistent
by terminating the message with LF here.

Signed-off-by: Thiago Perrotta <tbperrotta@gmail.com>
---
 git-send-email.perl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/git-send-email.perl b/git-send-email.perl
index e65d969d0b..d1731c1755 100755
--- a/git-send-email.perl
+++ b/git-send-email.perl
@@ -114,7 +114,7 @@  sub usage {
 }
 
 sub completion_helper {
-    print Git::command('format-patch', '--git-completion-helper');
+    print Git::command('format-patch', '--git-completion-helper'), "\n";
     exit(0);
 }