Browse Source

Merge branch 'mg/maint-send-email-lazy-editor' into maint

* mg/maint-send-email-lazy-editor:
  send-email: lazily assign editor variable
maint
Junio C Hamano 15 years ago
parent
commit
fe7e37235d
  1. 5
      git-send-email.perl

5
git-send-email.perl

@ -162,9 +162,12 @@ my $compose_filename; @@ -162,9 +162,12 @@ my $compose_filename;

# Handle interactive edition of files.
my $multiedit;
my $editor = Git::command_oneline('var', 'GIT_EDITOR');
my $editor;

sub do_edit {
if (!defined($editor)) {
$editor = Git::command_oneline('var', 'GIT_EDITOR');
}
if (defined($multiedit) && !$multiedit) {
map {
system('sh', '-c', $editor.' "$@"', $editor, $_);

Loading…
Cancel
Save