debian/patches: Add patch that uses editor instead of vi for the fallback program
David Caldwell
5 years ago
0 | Index: commit-patch/commit-patch | |
1 | =================================================================== | |
2 | --- commit-patch.orig/commit-patch 2019-02-13 23:18:12.007932991 -0800 | |
3 | +++ commit-patch/commit-patch 2019-02-13 23:18:35.996431443 -0800 | |
4 | @@ -178,7 +178,7 @@ | |
5 | ||
6 | run([split(/ /,$vc{diff}), @ARGV], '>>', $patch); | |
7 | } | |
8 | - system(($ENV{VISUAL} || $ENV{EDITOR} || 'vi')." ".$patch); | |
9 | + system(($ENV{VISUAL} || $ENV{EDITOR} || 'editor')." ".$patch); | |
10 | my $last_patch = "#last-comit-partial.patch"; | |
11 | unlink "$last_patch.3"; | |
12 | rename "$last_patch.2", "$last_patch.3"; |