Re: [PATCH v2] object-name: accept @{p} as short for @{push}
- From
Ben Knoble <ben.knoble@gmail.com>
- Date
- Oct 2, 2026, 12:08 UTC
- Message-ID
- <81BD7B8C-6E7E-451A-9D48-49ABD5FA5F68@gmail.com>
- In-Reply-To
- <pull.2431.v2.git.git.1790927399813.gitgitgadget@gmail.com>
Show 9 quoted lines
> Le 2 oct. 2026 à 03:50, Harald Nordgren via GitGitGadget <gitgitgadget@gmail.com> a écrit :
>
> +test_expect_success '@{p} is short for @{push}' '
> + test_config push.default current &&
> + test_config branch.topic.pushremote other &&
> + resolve topic@{p} refs/remotes/other/topic &&
> + resolve topic@{P} refs/remotes/other/topic
> +'
> +I don’t recall offhand if @{U} case-variant is supported, but I wonder if we might not want to preserve as many single-character shorthands as we can, since there are a limited number that are reasonable to type.
If upstream already supports different cases, though, symmetry is probably best.