git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Junio C Hamano
Message 9 of 9 in “--follow is ignored when used with --reverse”
  1. Alois MahdalMay 23, 2013
  2. alois.mahdal.1-ndmail@zxcvb.czJul 2, 2013
  3. Ramkumar RamachandraJul 2, 2013
  4. John KeepingJul 2, 2013
  5. Lukas FleischerJul 2, 2013
  6. Thomas RastJul 2, 2013
  7. John KeepingJul 2, 2013
  8. Junio C HamanoJul 2, 2013
  9. Johannes SixtJul 2, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.