Re: [PATCH 8/9] get_short_oid / peel_onion: ^{tree} should mean commit, not commitish
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Apr 30, 2018, 23:22 UTC
- Message-ID
- <CAPig+cSxdLe=dg2MUNBAZ94z4bXZYfrP1w43R_4Fr0XKVe5jdQ@mail.gmail.com>
- In-Reply-To
- <20180430220734.30133-9-avarab@gmail.com>
On Mon, Apr 30, 2018 at 6:07 PM, Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:
> get_short_oid / peel_onion: ^{tree} should mean commit, not commitishs/tree/commit/
Show 13 quoted lines
> Continue the untangling of peel disambiguation syntax. Before this
> e8f2^{commit} would show the v2.17.0 tag, but now it'll just show
> ambiguous commits:
>
> $ git rev-parse e8f2^{commit}
> error: short SHA1 e8f2 is ambiguous
> hint: The candidates are:
> hint: e8f21caf94 commit 2013-06-24 - bash prompt: print unique detached HEAD abbreviated object name
> hint: e8f26250fa commit 2017-02-03 - Merge pull request #996 from jeffhostetler/jeffhostetler/register_rename_src
> hint: e8f2bc0c06 commit 2015-05-10 - Documentation: note behavior for multiple remote.url entries
> [...]
>
> Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>