Re: --follow is ignored when used with --reverse
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- Jul 2, 2013, 11:20 UTC
- Message-ID
- <51D2B781.7000906@viscovery.net>
- In-Reply-To
- <20130524012324.295dec77@hugo.daonet.home>
Am 5/24/2013 1:23, schrieb Alois Mahdal:
> ...query for when the file was really added, > which I was trying to achieve with > > $ git -1 --reverse --follow several_times_renamed_file
Assuming you meant 'git log -1 ...' or similar. It won't do what you think it would do because:
* -1 is a revision traversal options.
* --reverse is an "output" option.
This means: First, revisions are collected, at which point -1 is honored. Second, the revisions found are listed in --reverse order.
When you have only one revision in the list, the output is the same with or without --reverse ;-)
-- Hannes