File: generic_editor.diff

package info (click to toggle)
ticgit 1.0.2.18-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 488 kB
  • sloc: ruby: 2,848; sh: 124; makefile: 16
file content (18 lines) | stat: -rw-r--r-- 767 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Subject: If $EDITOR is unset, invoke editor instead of vim
From: Michael Schutte <michi@debian.org>

As per Policy 11.4.

Index: devel/lib/ticgit-ng/cli.rb
===================================================================
--- devel.orig/lib/ticgit-ng/cli.rb	2013-06-27 18:03:21.000000000 +0200
+++ devel/lib/ticgit-ng/cli.rb	2013-06-27 18:03:21.000000000 +0200
@@ -98,7 +98,7 @@
       message_file = Tempfile.new('ticgitng_message').path
       File.open(message_file, 'w') { |f| f.puts comments } if comments
 
-      editor = ENV["EDITOR"] || 'vim'
+      editor = ENV["EDITOR"] || 'editor'
       system("#{editor} #{message_file}");
       message = File.readlines(message_file)
       message = message.select { |line| line[0, 1] != '#' } # removing comments