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

Re: [PATCH] object-name: accept @{p} as short for @{push}

From
Harald Nordgren <haraldnordgren@gmail.com>
Date
Oct 1, 2026, 07:05 UTC
Message-ID
<CAHwyqnV+63w6DcPm5ea0n8inqG_v4ujR2CiAbZr-h5SdZJsHOg@mail.gmail.com>
In-Reply-To
<xmqq7bk28i88.fsf@gitster.g>
Show 23 quoted lines
> > From: Harald Nordgren <haraldnordgren@gmail.com>
> >
> > Typing "git log @{p}.." fails with "unknown revision", even though
> > "@{u}" works as the short form of "@{upstream}". Users who reach for
> > the one letter spelling of the push destination by analogy get an
> > error.
>
> That's a weak justification.  The same argument may lead to a
> different conclusion, i.e., we should remove @{u}, for example ;-)
>
> As I wrote in my response to Ben Knoble, I dug the mailing list
> history, and I think it is a good thing to record in the log message
> of this change what we can learn from the history.  Things that you
> should describe include
>
>  - @{upstream} had @{u} from the beginning
>  - @{push} did not
>  - the reason we do not have corresponding @{p} is not because
>    somebody gave a concrete reason why we shouldn't while the
>    feature was being added.
>
> The last one is, as Ben brought up, a very good thing to mention, as
> we can justify this change with "just for symmetry, add missing @{p}".
Thanks, I'll take a look!
Harald
Previous: Junio C HamanoNext: Harald Nordgren via GitGitGadget
Message 7 of 11 in “object-name: accept @{p} as short for @{push}”
  1. object-name: accept @{p} as short for @{push}Harald Nordgren via GitGitGadget, Sep 30, 2026
  2. D. Ben KnobleSep 30, 2026
  3. Junio C HamanoSep 30, 2026
  4. Jeff KingSep 30, 2026
  5. Junio C HamanoOct 1, 2026
  6. Junio C HamanoSep 30, 2026
  7. Harald NordgrenOct 1, 2026
  8. object-name: accept @{p} as short for @{push}Harald Nordgren via GitGitGadget, Oct 2, 2026
  9. Ben KnobleOct 2, 2026
  10. Harald NordgrenOct 2, 2026
  11. Junio C HamanoOct 2, 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.