summaryrefslogtreecommitdiff
path: root/builtin/diff.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2016-01-20 11:06:02 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-01-21 18:45:11 (GMT)
commite5f7a5d16f2c890e7dda96e5681ee8f6687b45e4 (patch)
tree74c029ffaf56b5fa433188f94fadc6d8cd9c1d82 /builtin/diff.c
parent833e48259e23aea76f3765d28d1b2200332301f7 (diff)
downloadgit-e5f7a5d16f2c890e7dda96e5681ee8f6687b45e4.zip
git-e5f7a5d16f2c890e7dda96e5681ee8f6687b45e4.tar.gz
git-e5f7a5d16f2c890e7dda96e5681ee8f6687b45e4.tar.bz2
diff-no-index: do not take a redundant prefix argument
Prefix is already set up in "revs". The same prefix should be used for all options parsing. So kill the last argument. This patch does not actually change anything because the only caller does use the same prefix for init_revisions() and diff_no_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.c')
-rw-r--r--builtin/diff.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/diff.c b/builtin/diff.c
index 4326fa5..7b9917b 100644
--- a/builtin/diff.c
+++ b/builtin/diff.c
@@ -341,7 +341,7 @@ int cmd_diff(int argc, const char **argv, const char *prefix)
}
if (no_index)
/* If this is a no-index diff, just run it and exit there. */
- diff_no_index(&rev, argc, argv, prefix);
+ diff_no_index(&rev, argc, argv);
/* Otherwise, we are doing the usual "git" diff */
rev.diffopt.skip_stat_unmatch = !!diff_auto_refresh_index;