X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=diffcore.h;h=491bea0b44963461cfce30b07ec96a9005a3c910;hb=8642abc76454a6e09344e27a7797ff08264abe76;hp=fcd00bf27aee4e1f2823f05ab3dba1d3c70a509d;hpb=e1c07fa8b169639ee105890082211ba70241b66c;p=thirdparty%2Fgit.git diff --git a/diffcore.h b/diffcore.h index fcd00bf27a..491bea0b44 100644 --- a/diffcore.h +++ b/diffcore.h @@ -91,7 +91,14 @@ struct diff_queue_struct { struct diff_filepair **queue; int alloc; int nr; + int run; }; +#define DIFF_QUEUE_CLEAR(q) \ + do { \ + (q)->queue = NULL; \ + (q)->nr = (q)->alloc = 0; \ + (q)->run = 0; \ + } while(0); extern struct diff_queue_struct diff_queued_diff; extern struct diff_filepair *diff_queue(struct diff_queue_struct *,