Re: [PATCH 2/3] diff-index: careful when inspecting work tree items

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le lundi 31 mars 2008, Junio C Hamano a écrit :
> Junio C Hamano <gitster@xxxxxxxxx> writes:
> > diff --git a/diff-lib.c b/diff-lib.c
> > index 52dbac3..a8e107a 100644
> > --- a/diff-lib.c
> > +++ b/diff-lib.c
> > ...
> > @@ -489,8 +516,11 @@ static int get_stat_data(struct cache_entry *ce,
> >  	if (!cached) {
> >  		int changed;
> >  		struct stat st;
> > -		if (lstat(ce->name, &st) < 0) {
> > -			if (errno == ENOENT && match_missing) {
> > +		changed = check_work_tree_entity(ce, &st, NULL);
>
> This "NULL" should be "cbdata->symcache".

Tested-by: Christian Couder <chriscool@xxxxxxxxxxxxx>

Your patch series works fine for me.

Thanks,
Christian.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux