unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#53044: (wishlist) time-machine and ambiguous prefix SHA-1
@ 2022-01-06  9:27 zimoun
  0 siblings, 0 replies; only message in thread
From: zimoun @ 2022-01-06  9:27 UTC (permalink / raw)
  To: 53044

Hi,

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

--8<---------------cut here---------------start------------->8---
$ 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
[..]
--8<---------------cut here---------------end--------------->8---

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

--8<---------------cut here---------------start------------->8---
$ guix time-machine --commit=7022eb6 -- help
guix time-machine: error: Git error: ambiguous SHA1 prefix - found multiple pack entries
--8<---------------cut here---------------end--------------->8---

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




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-01-06  9:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-06  9:27 bug#53044: (wishlist) time-machine and ambiguous prefix SHA-1 zimoun

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).