unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: zimoun <zimon.toutoune@gmail.com>
To: 53044@debbugs.gnu.org
Subject: bug#53044: (wishlist) time-machine and ambiguous prefix SHA-1
Date: Thu, 06 Jan 2022 10:27:00 +0100	[thread overview]
Message-ID: <86o84p5i57.fsf@gmail.com> (raw)

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




                 reply	other threads:[~2022-01-06  9:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86o84p5i57.fsf@gmail.com \
    --to=zimon.toutoune@gmail.com \
    --cc=53044@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public 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).