Re: Re: git log -M -- filename is not working?
- From
Jeff King <peff@peff.net>
- Date
- May 12, 2010, 16:45 UTC
- Message-ID
- <20100512164522.GA14710@coredump.intra.peff.net>
- In-Reply-To
- <AANLkTilje2dBHjd2aykMnAjWdf8k1vayJ_ez4IfMrl7_@mail.gmail.com>
On Thu, May 13, 2010 at 12:07:24AM +0800, Bo Yang wrote:
Show 10 quoted lines
> > But with `-p' it was doing something confusing: I used two files that > > were recently renamed, and the result was the correct log history, but > > the first patch that was shown (the rename) showed the two files as > > added. (That's even when I added `-C' and `-M'.) This happens even > > with a single path. OTOH, using `--follow' with `-p' and a single > > path without your patch produces the expected result where the first > > patch is a rename (even without `-C'/`-M'). > > Try this one, it only change a little on Jeff's patch, my simple tests > show it works. Apply it on 'next' branch.
This is badly whitespace damaged. I fixed up some wrapping, but it seems that there was some tab/space interchanges, too. Can you repost?
-Peff