Skip to contentSkip to conversation

contrib/difftool: remove distracting 'echo' in the SIGINT handler

PATCH In review Markus Heidelberg 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 contrib/difftool: remove distracting 'echo' in the SIGINT handler

When interrupting git-difftool with Ctrl-C, the output of this echo command led to having the cursor at the beginning of the line below the shell prompt.

---

David, have you intentionally added this 'echo', did it fix anything for you?

 contrib/difftool/git-difftool-helper |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
contrib/difftool/git-difftool-helper +0 -1
index a2eb59b..0c48506 100755
@@ -32,7 +32,6 @@ cleanup_temp_files () {
 
 # This is called when users Ctrl-C out of git-difftool-helper
 sigint_handler () {
-	echo
 	cleanup_temp_files
 	exit 1
 }
Signature · 1 line
1.6.1.216.g3acd
#1 lore raw
Quoted 9 lines · Markus Heidelberg

When interrupting git-difftool with Ctrl-C, the output of this echo command led to having the cursor at the beginning of the line below the shell prompt.

---

David, have you intentionally added this 'echo', did it fix anything for you?

I think you're right in that we're better off without the echo. There wasn't really any reason for it to be there.

Quoted 20 lines
 contrib/difftool/git-difftool-helper |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
contrib/difftool/git-difftool-helper +0 -2
index a2eb59b..0c48506 100755
@@ -32,7 +32,6 @@ cleanup_temp_files () {
 
 # This is called when users Ctrl-C out of git-difftool-helper
 sigint_handler () {
-       echo
       cleanup_temp_files
       exit 1
 }
--

1.6.1.216.g3acd

Signature · 1 line
    David