Thread (8 messages) flat view 8 messages, 5 authors, 2026-01-20

Re: Triangular workflow

From: Junio C Hamano <hidden>
Date: 2026-01-14 18:54:56

Jeff King [off-list ref] writes:
And having the extra output from "git checkout" is just extra noise for
me, especially because it is easy to see only the second message (which
looks just like the upstream ahead/behind message, of course) and get
confused. The first time I saw it I thought I had misconfigured
something with my branch.
It now is clear to me that this should be _optional_, so that those
who do really want extra output from the command should explicitly
opt into the feature.  After all, any optional new feature that you
must opt into by definition cannot regress end user experience for
those who do not ;-)

At the same time, I suspect that extra comparison on top of what we
already give against the @{upstream} may not be limited to what
Harald implemented (is it essentially the same as specyfing @{push},
or something else?).  I wonder if we can come up with a flexible and
extensible notation to specify what branch(es) to compare with, so
that we can use it as the value of this opt-in configuration
variable?  Something like

	[status] compareBranches = @{upstream} @{push}

signals that the current branch is compared against these two
branches, and not having the configuration (i.e., traditional
behaviour, which is left the default) would be equivalent to have

	[status] compareBranches = @{upstream}

or something like that, perhaps?

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