From unknown Sat Jun 14 18:46:15 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#53044 <53044@debbugs.gnu.org> To: bug#53044 <53044@debbugs.gnu.org> Subject: Status: (wishlist) time-machine and ambiguous prefix SHA-1 Reply-To: bug#53044 <53044@debbugs.gnu.org> Date: Sun, 15 Jun 2025 01:46:15 +0000 retitle 53044 (wishlist) time-machine and ambiguous prefix SHA-1 reassign 53044 guix submitter 53044 zimoun severity 53044 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 06 04:32:39 2022 Received: (at submit) by debbugs.gnu.org; 6 Jan 2022 09:32:39 +0000 Received: from localhost ([127.0.0.1]:39663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5P8R-00014n-0f for submit@debbugs.gnu.org; Thu, 06 Jan 2022 04:32:39 -0500 Received: from lists.gnu.org ([209.51.188.17]:50740) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n5P8M-00014c-Hv for submit@debbugs.gnu.org; Thu, 06 Jan 2022 04:32:37 -0500 Received: from eggs.gnu.org ([209.51.188.92]:46860) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n5P8M-0007KE-DG for bug-guix@gnu.org; Thu, 06 Jan 2022 04:32:34 -0500 Received: from [2a00:1450:4864:20::435] (port=38861 helo=mail-wr1-x435.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n5P8K-0007yR-6b for bug-guix@gnu.org; Thu, 06 Jan 2022 04:32:34 -0500 Received: by mail-wr1-x435.google.com with SMTP id e5so3587281wrc.5 for ; Thu, 06 Jan 2022 01:32:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=6flfcGDprHGQdONWfeFwq9W8UMbUrsequLy4Ba8XEqU=; b=WoR/hKc8sEI0eUTvwPg8Wzc3Gg1FEURSNqlzX3niKakQfUXRgI74U925s+W3//hYA5 LPnmWXk+vUtn+5vmq7Nn3royB5HRFiNwJNST2p66kBraBRJQChx5QCPgH7PhV3V0DGpG tlctVIWqVgKFuZAylGMR6nt1YzrngZYJuSU9ST0rWJ2vZSd7YqBGIMacFGQec/g1z9Cg 7JsMmdcsybXAdRSEnoEekbWxaFlDFQ/5T1WpcSWzIiLcn73GQHeK+YWC4lSOPfWFrjDb 22s3ExJ6blcTLlJ/odSHXl1gpAj2qFgvk9vPAbxPN/q/AavZmKXifLTEUZFFqWt7UhSr zY+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=6flfcGDprHGQdONWfeFwq9W8UMbUrsequLy4Ba8XEqU=; b=wtNEoNlBDCNUm4MzzA/tuDEsyLBPQ2Qn43Dr7JsWc9nrrxSXYsjeZFbzhH26S0qA9p HUKrMKsigXmSjTHhwJSKOSIY4F0Wmu1OKryWs8pD+6z1Cxwe5MWaXKwdGrS+DnEdNw7/ Vp7IF9MbSXVthVaUuuki4paUz84XsrZjicAknOmObKIAjwZxp6PMtJtfkr6rRCX15gMe MvRXR2pb1pE2xr3Yo+94BoVPzJ3Y6V5stfZe57oIyELboFbdXdcN2suYnboEdMbGvUxx TcS5XREn9i6A4lUepjf5mbZQLw+zu2Omj1qTcGQH6sVPauodmjpbfoc41siS340nIQPK BHtw== X-Gm-Message-State: AOAM533Yynu7njdEnjUINyuTfUQVbxQ28QwbFDUuemvtctZMBYrqoJ4f vAwkrqUs6M+U/lVXiaVQf+aeBqDXiL4= X-Google-Smtp-Source: ABdhPJzyWH3rnB2Xc8KHHjzi+Kus6midKP/81xOf/VMYiB4szXaFJ+4/GapO+9HlUkQxb9/JiaVq1w== X-Received: by 2002:a5d:6046:: with SMTP id j6mr53488484wrt.517.1641461550621; Thu, 06 Jan 2022 01:32:30 -0800 (PST) Received: from lili ([2a01:e0a:59b:9120:65d2:2476:f637:db1e]) by smtp.gmail.com with ESMTPSA id z22sm1219891wmi.26.2022.01.06.01.32.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Jan 2022 01:32:30 -0800 (PST) From: zimoun To: Bug Guix Subject: (wishlist) time-machine and ambiguous prefix SHA-1 Date: Thu, 06 Jan 2022 10:27:00 +0100 Message-ID: <86o84p5i57.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::435 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::435; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x435.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.4 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, Now the repo is becoming large, the short prefix using 6 character can be refer to 2 Git objects. For instance, --88--- $ git show 7022eb6 error: short object ID 7022eb6 is ambiguous hint: The candidates are: hint: 7022eb6ea0 commit 2021-12-07 - gnu: Add [...] Content analysis details: (1.4 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (zimon.toutoune[at]gmail.com) 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.51.188.17 listed in wl.mailspike.net] 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 1.3 SPOOFED_FREEMAIL No description available. 1.5 SPOOF_GMAIL_MID From Gmail but it doesn't seem to be... X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) 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 =E2=80=9Cguix time-machine=E2=80=9D (or gu= ix pull), for instance, --8<---------------cut here---------------start------------->8--- $ guix time-machine --commit=3D7022eb6 -- 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