(wishlist) time-machine and ambiguous prefix SHA-1

  • Open
  • quality assurance status badge
Details
One participant
  • zimoun
Owner
unassigned
Submitted by
zimoun
Severity
wishlist
Z
Z
zimoun wrote on 6 Jan 2022 10:27
(name . Bug Guix)(address . bug-guix@gnu.org)
86o84p5i57.fsf@gmail.com
Hi,

Now the repo is becoming large, the short prefix using 6 character can
be refer to 2 Git objects. For instance,

Toggle snippet (8 lines)
$ git show 7022eb6
error: short object ID 7022eb6 is ambiguous
hint: The candidates are:
hint: 7022eb6ea0 commit 2021-12-07 - gnu: Add notcurses.
hint: 7022eb6c9a blob
[..]

The issue is the error report by “guix time-machine” (or guix pull), for
instance,

Toggle snippet (4 lines)
$ guix time-machine --commit=7022eb6 -- help
guix time-machine: error: Git error: ambiguous SHA1 prefix - found multiple pack entries

It could be nice that, when short prefix is ambiguous:

1) try the commit object candidate if only one
2) show a hint for the possible candidates


Cheers,
simon
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 53044@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 53044
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch