X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=git.c;h=fdb0f71019a02e310e15734193c7556860956115;hb=a786091b4a487bc08bbff4864717cf5d8383e983;hp=37b1d76a08ca59f3de54e11890dce962403cf8d3;hpb=10d9d887ecdc81197162d7bbe5dfc0d028498fd6;p=git.git diff --git a/git.c b/git.c index 37b1d76a0..fdb0f7101 100644 --- a/git.c +++ b/git.c @@ -286,7 +286,7 @@ static void handle_internal_command(int argc, const char **argv) { "count-objects", cmd_count_objects, RUN_SETUP }, { "describe", cmd_describe, RUN_SETUP }, { "diff", cmd_diff }, - { "diff-files", cmd_diff_files, RUN_SETUP }, + { "diff-files", cmd_diff_files, RUN_SETUP | NEED_WORK_TREE }, { "diff-index", cmd_diff_index, RUN_SETUP }, { "diff-tree", cmd_diff_tree, RUN_SETUP }, { "fast-export", cmd_fast_export, RUN_SETUP },