From: Junio C Hamano Date: Thu, 14 Mar 2013 17:33:36 GMT Subject: Re: difftool -d symlinks, under what conditions Message-ID: <7vehfhyjgv.fsf@alter.siamese.dyndns.org> In-Reply-To: <20130314172515.GB4256@serenity.lan> John Keeping writes: > The path passed to get_stream_filter is only used to decide what filters > apply to the file, so shouldn't it be using "ce->name" and not "path" > for the same reason that the call to convert_to_working_tree() further > down the same function does? Correct and well spotted. > > -- >8 -- > diff --git a/entry.c b/entry.c > index 17a6bcc..63c52ed 100644 > --- a/entry.c > +++ b/entry.c > @@ -145,7 +145,7 @@ static int write_entry(struct cache_entry *ce, char *path, const struct checkout > struct stat st; > > if (ce_mode_s_ifmt == S_IFREG) { > - struct stream_filter *filter = get_stream_filter(path, ce->sha1); > + struct stream_filter *filter = get_stream_filter(ce->name, ce->sha1); > if (filter && > !streaming_write_entry(ce, path, filter, > state, to_tempfile,