File: use-editor-instead-of-vi.patch

package info (click to toggle)
commit-patch 2.6-2
  • links: PTS
  • area: main
  • in suites: buster
  • size: 228 kB
  • sloc: perl: 222; sh: 178; lisp: 138; makefile: 47
file content (13 lines) | stat: -rw-r--r-- 584 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: commit-patch/commit-patch
===================================================================
--- commit-patch.orig/commit-patch	2019-02-13 23:18:12.007932991 -0800
+++ commit-patch/commit-patch	2019-02-13 23:18:35.996431443 -0800
@@ -178,7 +178,7 @@
 
         run([split(/ /,$vc{diff}), @ARGV], '>>', $patch);
     }
-    system(($ENV{VISUAL} || $ENV{EDITOR} || 'vi')." ".$patch);
+    system(($ENV{VISUAL} || $ENV{EDITOR} || 'editor')." ".$patch);
     my $last_patch = "#last-comit-partial.patch";
     unlink "$last_patch.3";
     rename "$last_patch.2", "$last_patch.3";