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

Re: What's cooking in git.git (Apr 2015, #04; Mon, 27)

From
Jeff King <peff@peff.net>
Date
Apr 30, 2015, 01:02 UTC
Message-ID
<20150430010256.GA5089@peff.net>
In-Reply-To
<xmqqbni64kum.fsf@gitster.dls.corp.google.com>
On Wed, Apr 29, 2015 at 03:42:57PM -0700, Junio C Hamano wrote:
Show 13 quoted lines
> > * jk/at-push-sha1 (2015-03-31) 6 commits
> >  - sha1_name: implement @{push} shorthand
> >  - sha1_name: refactor upstream_mark
> >  - remote.c: provide per-branch pushremote name
> >  - remote.c: hoist branch.*.remote lookup out of remote_get_1
> >  - remote.c: drop "remote" pointer from "struct branch"
> >  - remote.c: drop default_remote_name variable
> >
> >  Introduce <branch>@{push} short-hand to denote the remote-tracking
> >  branch that tracks the branch at the remote the <branch> would be
> >  pushed to.
> >
> >  Waiting for a reroll ($gmane/266573).

I re-rolled this and _almost_ sent it out last week. But I noticed that it gives us only "git rev-parse foo@{push}" and not "git for-each-ref --format=%(push)" (whereas we have "upstream" for both versions). For "upstream", computing the answer is simple enough that the tiny bit of logic is largely duplicated in the two spots. For @{push}, that would be a bad idea. So I started refactoring the final patch to use the same logic in both spots, but didn't finish.

I can send the intermediate version (i.e., the re-roll with a few minor fixups based on list comments), and we can build the other on top, but I don't think there's any rush, and it can wait for the refactor (which shouldn't be _too_ bad, I don't think).

-Peff
Previous: Junio C HamanoNext: Junio C Hamano
Message 7 of 13 in “What's cooking in git.git (Apr 2015, #04; Mon, 27)”
  1. Junio C HamanoApr 27, 2015
  2. Junio C HamanoApr 29, 2015
  3. Koosha KhajehmoogahiApr 29, 2015
  4. Junio C HamanoApr 30, 2015
  5. Paul TanApr 30, 2015
  6. Junio C HamanoApr 30, 2015
  7. Jeff KingApr 30, 2015
  8. Junio C HamanoApr 30, 2015
  9. Michael HaggertyApr 30, 2015
  10. Michael J GruberApr 30, 2015
  11. Michael HaggertyApr 30, 2015
  12. Duy NguyenApr 30, 2015
  13. Junio C HamanoApr 30, 2015

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.