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

Re: [PATCH v2] status: compare against both upstream and push branch by default

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 23, 2026, 17:43 UTC
Message-ID
<xmqqld7o71ot.fsf@gitster.g>
In-Reply-To
<pull.2458.v2.git.git.1792585662669.gitgitgadget@gmail.com>
"Harald Nordgren via GitGitGadget" <gitgitgadget@gmail.com> writes:
> Showing both without any configuration was the original proposal for
> that commit. But some found the comparison with the push branch to be
> noise. So the comparison was made opt in [1], with the idea of
> flipping the default later if people like the option.
The key phrase here is "if people like the option".
> Those who find the comparison with the push branch to be noise can
> set status.compareBranches to "@{upstream}" to get the old output
> back.

The presence of an escape hatch is described here. But its existence is not a valid excuse to force people to use it, nor does it answer the question "if people like the option" posed above.

The paragraph above (and below) also assumes that comparing with @{push} is not noise for many people. We have not yet heard a convincing argument supporting that assumption in the proposed log message. In a triangular workflow, @{upstream} is not under your control, so you may want to monitor its progress closely. But isn't your @{push} destination typically owned solely by you? In other words, aren't you the only one who pushes to it? If so, whatever you did locally would be the only change that could go on top of @{push}, and unlike @{upstream} you would not see any unexpected work over there appearing without your control.

Show 5 quoted lines
> Having configured push.default and a push remote to get there,
> they are the users best placed to find that setting. Those who are
> just starting to push somewhere other than where they pull from
> benefit the most from seeing both comparisons without having to
> discover the variable first.

I do not think I follow. Those who are just starting to push to a destination other than @{upstream} would have changed their configuration to do so, wouldn't they? Aren't they equally well placed, if not more, to find the same setting?

Overall, I still do not find it convincing that we should change the default to surprise existing users.

Thanks.
Previous: Harald Nordgren via GitGitGadgetNext: Harald Nordgren
Message 9 of 16 in “status: compare against both upstream and push branch by default”
  1. status: compare against both upstream and push branch by defaultHarald Nordgren via GitGitGadget, Oct 19, 2026
  2. Junio C HamanoOct 19, 2026
  3. Harald NordgrenOct 20, 2026
  4. Phillip WoodOct 20, 2026
  5. Harald NordgrenOct 20, 2026
  6. Kristoffer HaugsbakkOct 20, 2026
  7. Phillip WoodOct 20, 2026
  8. status: compare against both upstream and push branch by defaultHarald Nordgren via GitGitGadget, Oct 21, 2026
  9. Junio C HamanoOct 23, 2026
  10. Harald NordgrenOct 23, 2026
  11. Junio C HamanoOct 23, 2026
  12. Harald NordgrenOct 23, 2026
  13. Junio C HamanoOct 23, 2026
  14. D. Ben KnobleOct 24, 2026
  15. Junio C HamanoOct 24, 2026
  16. status: compare against both upstream and push branch by defaultHarald Nordgren via GitGitGadget, Oct 25, 2026

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.