diff options
author | Junio C Hamano <gitster@pobox.com> | 2007-09-14 15:17:07 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-09-14 15:17:07 -0700 |
commit | f6336167e9f233d3a68c8ded18b172ba50cde743 (patch) | |
tree | 68dc04b198e56b0f03539a648dc2af84c41ee685 /diff-lib.c | |
parent | 611d8139e4e0a78797a0821074fc94a4f8d74b7b (diff) | |
parent | d99ebf081797dbb43ff618ff59f4c607b0acf045 (diff) | |
download | git-f6336167e9f233d3a68c8ded18b172ba50cde743.tar.gz |
Merge branch 'jc/grep-c'
* jc/grep-c:
Split grep arguments in a way that does not requires to add /dev/null.
Documentation/git-config.txt: AsciiDoc tweak to avoid leading dot
Add test to check recent fix to "git add -u"
Documentation/git-archive.txt: a couple of clarifications.
Fix the rename detection limit checking
diff --no-index: do not forget to run diff_setup_done()
Diffstat (limited to 'diff-lib.c')
-rw-r--r-- | diff-lib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/diff-lib.c b/diff-lib.c index f5568c3b36..da5571302d 100644 --- a/diff-lib.c +++ b/diff-lib.c @@ -298,6 +298,8 @@ int setup_diff_no_index(struct rev_info *revs, revs->diffopt.nr_paths = 2; revs->diffopt.no_index = 1; revs->max_count = -2; + if (diff_setup_done(&revs->diffopt) < 0) + die("diff_setup_done failed"); return 0; } |