Re: [PATCH v2] scripts: git-resolve: ignore non-commit objects

From: Sasha Levin

Date: Wed Nov 04 2026 - 07:57:10 EST


On Wed, Nov 04, 2026 at 06:43:32AM +0100, Hamdy Abou El Anein wrote:
> git rev-parse --disambiguate lists objects of every type. A unique blob
> or tree prefix is therefore returned successfully as a commit ID. Such
> an ID cannot be used as a commit reference or Fixes tag.
>
> Filter the candidates by object type before deciding whether the prefix
> is unique or looking up its subject.

Thanks for folding the argument check in.

Acked-by: Sasha Levin <sashal@xxxxxxxxxx>

--
Thanks,
Sasha