Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: [RFC] Making pathspec limited log play nicer with --first-parent

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: 2016-06-15 22:52:50

On Thu, Jan 19, 2012 at 11:58 AM, Junio C Hamano [off-list ref] wrote:
Comments?
Looks conceptually right, but I do have to admit to hating that new variable.

I don't see a better way to do it, though. Sure, you could do it with just

   if (revs->first_parent_only && pp != &commit->parents)
             break;

and avoid the new variable that way, but that replaces the annoying
variable with a pretty subtle thing.

Or we could re-write that while() loop and move the 'parent' variable
into it. Like the appended untested thing.

But maybe your patch is better, and my dislike for that parent counter
is just irrational.

                  Linus

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help