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

Re: Bug with rev-list --reverse?

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Apr 18, 2013, 11:18 UTC
Message-ID
<CAMP44s014Yv9+N7=0CYiYYybJCZJ7r-vQp_zcfg6Xo=3f21RWA@mail.gmail.com>
In-Reply-To
<alpine.DEB.2.00.1304181146090.30868@ds9.cixit.se>
On Thu, Apr 18, 2013 at 5:47 AM, Peter Krefting <peter@softwolves.pp.se> wrote:
Show 16 quoted lines
>> % git log --oneline -1 v1.8.1.5^..v1.8.1.6
>> % git log --oneline --reverse -1 v1.8.1.5^..v1.8.1.6
>>
>> I expect to get a different output, and not both showing v1.8.1.6.
>> Wouldn't you agree?
>
>
>  Quoting the manual page:
>
>  Commit Limiting
>    Besides specifying a range of commits that should be listed using the
> special notations explained in the description, additional commit limiting
> may be applied. Note that they are applied before commit ordering and
> formatting options, such as --reverse.
>
> Given that, I would expect the output to be the same.

If expectations were based on documentation, all one has to do is document bugs, and there would be no bugs anymore :)

Code can be changed to fit more appropriately user expectations (which are independent of documentation), and the documentation updated accordingly.

-- 
Felipe Contreras
Previous: Peter KreftingNext: Thomas Rast
Message 5 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.