Skip to content

Commit 5f3656e

Browse files
committed
Merge branch 'builtin-difftool'
This topic branch brings the new, experimental builtin version of the difftool into Git for Windows' master branch. It still hands off to the legacy Perl script unless the feature flag is flipped: only when the config setting difftool.useBuiltin is set to true will `git difftool` actually use the experimental builtin. The idea is to play it safe for the majority of users, but to allow heavy difftool users to test early and to help make the builtin robust, before we actually retire the Perl script. Signed-off-by: Johannes Schindelin <[email protected]>
2 parents 936afe9 + ac91e48 commit 5f3656e

File tree

7 files changed

+743
-1
lines changed

7 files changed

+743
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
/git-init-db
7777
/git-interpret-trailers
7878
/git-instaweb
79+
/git-legacy-difftool
7980
/git-log
8081
/git-ls-files
8182
/git-ls-remote

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ SCRIPT_LIB += git-sh-setup
527527
SCRIPT_LIB += git-sh-i18n
528528

529529
SCRIPT_PERL += git-add--interactive.perl
530-
SCRIPT_PERL += git-difftool.perl
530+
SCRIPT_PERL += git-legacy-difftool.perl
531531
SCRIPT_PERL += git-archimport.perl
532532
SCRIPT_PERL += git-cvsexportcommit.perl
533533
SCRIPT_PERL += git-cvsimport.perl
@@ -888,6 +888,7 @@ BUILTIN_OBJS += builtin/diff-files.o
888888
BUILTIN_OBJS += builtin/diff-index.o
889889
BUILTIN_OBJS += builtin/diff-tree.o
890890
BUILTIN_OBJS += builtin/diff.o
891+
BUILTIN_OBJS += builtin/difftool.o
891892
BUILTIN_OBJS += builtin/fast-export.o
892893
BUILTIN_OBJS += builtin/fetch-pack.o
893894
BUILTIN_OBJS += builtin/fetch.o

builtin.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ extern int cmd_diff_files(int argc, const char **argv, const char *prefix);
6060
extern int cmd_diff_index(int argc, const char **argv, const char *prefix);
6161
extern int cmd_diff(int argc, const char **argv, const char *prefix);
6262
extern int cmd_diff_tree(int argc, const char **argv, const char *prefix);
63+
extern int cmd_difftool(int argc, const char **argv, const char *prefix);
6364
extern int cmd_fast_export(int argc, const char **argv, const char *prefix);
6465
extern int cmd_fetch(int argc, const char **argv, const char *prefix);
6566
extern int cmd_fetch_pack(int argc, const char **argv, const char *prefix);

0 commit comments

Comments
 (0)