aboutsummaryrefslogtreecommitdiff
path: root/diffcore-pickaxe.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-05-21 04:02:23 -0700
committerJunio C Hamano <gitster@pobox.com>2010-05-21 04:02:23 -0700
commit82c531b3b6d24040443ba739e150bc06ecc762ea (patch)
treede6a17434e48ee7866941e2e5491d9cf4d9b96e1 /diffcore-pickaxe.c
parent82e7ee7351d6e328294016d3b99825d8001abd24 (diff)
parent9feeaa2bf39aed4a0148296f504f88b09b8901d4 (diff)
downloadgit-82c531b3b6d24040443ba739e150bc06ecc762ea.tar.xz
Merge branch 'by/log-follow'
* by/log-follow: tests: rename duplicate t4205 Make git log --follow find copies among unmodified files. Make diffcore_std only can run once before a diff_flush Add a macro DIFF_QUEUE_CLEAR.
Diffstat (limited to 'diffcore-pickaxe.c')
-rw-r--r--diffcore-pickaxe.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/diffcore-pickaxe.c b/diffcore-pickaxe.c
index d0ef839700..929de15aa9 100644
--- a/diffcore-pickaxe.c
+++ b/diffcore-pickaxe.c
@@ -55,8 +55,7 @@ void diffcore_pickaxe(const char *needle, int opts)
int i, has_changes;
regex_t regex, *regexp = NULL;
struct diff_queue_struct outq;
- outq.queue = NULL;
- outq.nr = outq.alloc = 0;
+ DIFF_QUEUE_CLEAR(&outq);
if (opts & DIFF_PICKAXE_REGEX) {
int err;