Re: [RFC] git-disambiguate: disambiguate shorthand git ids

2024-12-19 Thread Sasha Levin
On Wed, Dec 18, 2024 at 05:41:58PM -0800, Kees Cook wrote: On Wed, Dec 18, 2024 at 06:36:13PM -0500, Sasha Levin wrote: Sometimes long commit hashes can be ambiguous even when providing several digits from its abbreviation. For testing, please see: https://git.kernel.org/pub/scm/linux/kernel/g

Re: [RFC] git-disambiguate: disambiguate shorthand git ids

2024-12-18 Thread Kees Cook
On Wed, Dec 18, 2024 at 06:36:13PM -0500, Sasha Levin wrote: > Sometimes long commit hashes can be ambiguous even when providing > several digits from its abbreviation. For testing, please see: https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git/log/?h=dev/collide/v6.13-rc2/12-char >

[RFC] git-disambiguate: disambiguate shorthand git ids

2024-12-18 Thread Sasha Levin
Sometimes long commit hashes can be ambiguous even when providing several digits from its abbreviation. Add a script that resolves such ambiguity by also considering the commit subject line. This also allows users to use shorter commit ID prefixes than normally required, since we can correctly id