Re: [PATCH 4/9] Refactor excluded_from_list

2012-09-04 Thread Nguyen Thai Ngoc Duy
On Sun, Sep 2, 2012 at 7:12 AM, Adam Spiers wrote: > diff --git a/dir.c b/dir.c > index 57a5d11..3a532d5 100644 > --- a/dir.c > +++ b/dir.c > @@ -509,22 +509,24 @@ static void prep_exclude(struct dir_struct *dir, const > char *base, int baselen) > dir->basebuf[baselen] = '\0'; > } > > -/

[PATCH 4/9] Refactor excluded_from_list

2012-09-01 Thread Adam Spiers
The excluded function uses a new helper function called exclude_from_list_1() to perform the inner loop over all of the exclude patterns. The helper just tells us whether the path is included, excluded, or undecided. However, it may be useful to know _which_ pattern was triggered. So let's pass