summaryrefslogtreecommitdiff
path: root/diff-no-index.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2010-12-15 15:02:38 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-02-03 20:28:15 (GMT)
commit66f136252fe1998e2c1381c913795b5f56b6dc8c (patch)
tree60cc0586003999c1c3d74c0ab2847a20decff6df /diff-no-index.c
parent16dc36fea87e917a7f734400eb91e62e170db1a8 (diff)
downloadgit-66f136252fe1998e2c1381c913795b5f56b6dc8c.zip
git-66f136252fe1998e2c1381c913795b5f56b6dc8c.tar.gz
git-66f136252fe1998e2c1381c913795b5f56b6dc8c.tar.bz2
Convert struct diff_options to use struct pathspec
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 e48ab92..3a36144 100644
--- a/diff-no-index.c
+++ b/diff-no-index.c
@@ -260,8 +260,8 @@ void diff_no_index(struct rev_info *revs,
if (diff_setup_done(&revs->diffopt) < 0)
die("diff_setup_done failed");
- if (queue_diff(&revs->diffopt, revs->diffopt.paths[0],
- revs->diffopt.paths[1]))
+ if (queue_diff(&revs->diffopt, revs->diffopt.pathspec.raw[0],
+ revs->diffopt.pathspec.raw[1]))
exit(1);
diff_set_mnemonic_prefix(&revs->diffopt, "1/", "2/");
diffcore_std(&revs->diffopt);