⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 215615 in webkit


Ignore:
Timestamp:
Apr 21, 2017, 10:26:14 AM (9 years ago)
Author:
Conrad Shultz
Message:

commit-log-editor should respect the git editor if one is set
https://bugs.webkit.org/show_bug.cgi?id=171085
<rdar://problem/31745506>

Reviewed by Daniel Bates.

  • Scripts/commit-log-editor:

If Git is available, consider GIT_LOG_EDITOR and any global Git editor preference when
deciding which editor to present. We examine the global editor preference since that may be
set automatically by installers or third-party tools.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r215608 r215615  
     12017-04-20  Conrad Shultz  <conrad_shultz@apple.com>
     2
     3        commit-log-editor should respect the git editor if one is set
     4        https://bugs.webkit.org/show_bug.cgi?id=171085
     5        <rdar://problem/31745506>
     6
     7        Reviewed by Daniel Bates.
     8
     9        * Scripts/commit-log-editor:
     10        If Git is available, consider GIT_LOG_EDITOR and any global Git editor preference when
     11        deciding which editor to present. We examine the global editor preference since that may be
     12        set automatically by installers or third-party tools.
     13
    1142017-04-21  Alex Christensen  <achristensen@webkit.org>
    215
  • trunk/Tools/Scripts/commit-log-editor

    r178686 r215615  
    9191my $baseDir = baseProductDir();
    9292
    93 my $editor = $ENV{SVN_LOG_EDITOR};
     93my $editor;
     94if (isGit()) {
     95    $editor = $ENV{GIT_LOG_EDITOR};
     96    $editor = `git config --global --get core.editor` if !$editor;
     97}
     98
     99$editor = $ENV{SVN_LOG_EDITOR} if !$editor;
    94100$editor = $ENV{CVS_LOG_EDITOR} if !$editor;
    95101$editor = "" if $editor && isCommitLogEditor($editor);
Note: See TracChangeset for help on using the changeset viewer.