aboutsummaryrefslogtreecommitdiff
path: root/diff-no-index.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2016-01-20 18:06:02 +0700
committerJunio C Hamano <gitster@pobox.com>2016-01-21 10:45:11 -0800
commite5f7a5d16f2c890e7dda96e5681ee8f6687b45e4 (patch)
tree74c029ffaf56b5fa433188f94fadc6d8cd9c1d82 /diff-no-index.c
parent833e48259e23aea76f3765d28d1b2200332301f7 (diff)
downloadgit-e5f7a5d16f2c890e7dda96e5681ee8f6687b45e4.tar.gz
git-e5f7a5d16f2c890e7dda96e5681ee8f6687b45e4.tar.xz
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 'diff-no-index.c')
-rw-r--r--diff-no-index.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/diff-no-index.c b/diff-no-index.c
index 0320605a8..8edc6f369 100644
--- a/diff-no-index.c
+++ b/diff-no-index.c
@@ -239,12 +239,12 @@ static void fixup_paths(const char **path, struct strbuf *replacement)
}
void diff_no_index(struct rev_info *revs,
- int argc, const char **argv,
- const char *prefix)
+ int argc, const char **argv)
{
int i, prefixlen;
const char *paths[2];
struct strbuf replacement = STRBUF_INIT;
+ const char *prefix = revs->prefix;
diff_setup(&revs->diffopt);
for (i = 1; i < argc - 2; ) {