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

Re: Bug with rev-list --reverse?

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 18, 2013, 17:25 UTC
Message-ID
<7vvc7j7nut.fsf@alter.siamese.dyndns.org>
In-Reply-To
<87k3nzx6dn.fsf@linux-k42r.v.cablecom.net>
Thomas Rast <trast@inf.ethz.ch> writes:
> You could come up with a patch series that first starts emitting
> warnings whenever the user asks for behavior that will change, and later
> flips the default and removes the warning (the latter would be merged
> for 2.0 or so).

Please don't. The fact that "reverse then count" mode may be useful does not mean "count then show in reverse" mode does not have any use. "git log --oneline --reverse -20" is a very valid way to ask "what did I do recently" and get "you did this, that and then..." in that order.

Adding a new option can be done anytime without any complex transition plan. You may want to introduce a --show-in-reverse synonym to the current --reverse when you add the new mode of reversing (--reverse-before-count?) so that eventually we won't have to ask "which kind of reverse an unadorned --reverse option mean?" by deprecating a plain "--reverse", though.

Previous: Thomas Rast
Message 7 of 7 in “Bug with rev-list --reverse?”
  1. Felipe ContrerasApr 18, 2013
  2. John KeepingApr 18, 2013
  3. Felipe ContrerasApr 18, 2013
  4. Peter KreftingApr 18, 2013
  5. Felipe ContrerasApr 18, 2013
  6. Thomas RastApr 18, 2013
  7. Junio C HamanoApr 18, 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.