difftool: add a skeleton for the upcoming builtin
[gitweb.git] / git.c
diff --git a/git.c b/git.c
index e8b2baf2d15c8a68553780c3137c55c3fea99b11..a8e6a15657a5aba77226aef9d1c0b38a88f5e2d5 100644 (file)
--- a/git.c
+++ b/git.c
@@ -424,6 +424,12 @@ static struct cmd_struct commands[] = {
        { "diff-files", cmd_diff_files, RUN_SETUP | NEED_WORK_TREE },
        { "diff-index", cmd_diff_index, RUN_SETUP },
        { "diff-tree", cmd_diff_tree, RUN_SETUP },
+       /*
+        * NEEDSWORK: Once the redirection to git-legacy-difftool.perl in
+        * builtin/difftool.c has been removed, this entry should be changed to
+        * RUN_SETUP | NEED_WORK_TREE
+        */
+       { "difftool", cmd_difftool },
        { "fast-export", cmd_fast_export, RUN_SETUP },
        { "fetch", cmd_fetch, RUN_SETUP },
        { "fetch-pack", cmd_fetch_pack, RUN_SETUP },