From d59d17e8100320a8b5bef21fc9a030c80c77f245 Mon Sep 17 00:00:00 2001 From: David Caldwell Date: Wed, 13 Feb 2019 23:23:54 -0800 Subject: [PATCH] debian/patches: Add patch that uses editor instead of vi for the fallback program --- debian/patches/series | 1 + debian/patches/use-editor-instead-of-vi.patch | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 debian/patches/use-editor-instead-of-vi.patch diff --git a/debian/patches/series b/debian/patches/series index 2f85b8e..3643075 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ makefile-install_el_files_to_correct_dir.patch +use-editor-instead-of-vi.patch diff --git a/debian/patches/use-editor-instead-of-vi.patch b/debian/patches/use-editor-instead-of-vi.patch new file mode 100644 index 0000000..7b06923 --- /dev/null +++ b/debian/patches/use-editor-instead-of-vi.patch @@ -0,0 +1,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"; -- 2.51.2