Thread (1 message) 1 message, 1 author, 2016-06-15

Re: Bug with rev-list --reverse?

From: Thomas Rast <hidden>
Date: 2016-06-15 22:56:53

Felipe Contreras [off-list ref] writes:
On Thu, Apr 18, 2013 at 5:47 AM, Peter Krefting [off-list ref] wrote:
quoted
quoted
% 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.
It's been this way forever, and applies to rev-list where we can't just
break how options work (for fear of breaking scripts).

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).

-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help