summaryrefslogtreecommitdiff
path: root/builtin/diff-files.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2018-09-21 15:57:38 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-09-21 16:51:19 (GMT)
commit2abf3503854e27e18b2fb5ba97ceeb3f79240ee5 (patch)
tree32420041df8dc531f41f954438910fd308cdd5ff /builtin/diff-files.c
parent26d024ecf0e2e5bd697714b95930bb6008d85f3f (diff)
downloadgit-2abf3503854e27e18b2fb5ba97ceeb3f79240ee5.zip
git-2abf3503854e27e18b2fb5ba97ceeb3f79240ee5.tar.gz
git-2abf3503854e27e18b2fb5ba97ceeb3f79240ee5.tar.bz2
revision.c: remove implicit dependency on the_index
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/diff-files.c')
-rw-r--r--builtin/diff-files.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/diff-files.c b/builtin/diff-files.c
index e88493f..48cfcb9 100644
--- a/builtin/diff-files.c
+++ b/builtin/diff-files.c
@@ -25,7 +25,7 @@ int cmd_diff_files(int argc, const char **argv, const char *prefix)
usage(diff_files_usage);
git_config(git_diff_basic_config, NULL); /* no "diff" UI options */
- init_revisions(&rev, prefix);
+ repo_init_revisions(the_repository, &rev, prefix);
rev.abbrev = 0;
precompose_argv(argc, argv);