From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id A89101F4B4 for ; Tue, 26 Jan 2021 22:30:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728031AbhAZWEV (ORCPT ); Tue, 26 Jan 2021 17:04:21 -0500 Received: from pb-smtp1.pobox.com ([64.147.108.70]:50661 "EHLO pb-smtp1.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732632AbhAZUNZ (ORCPT ); Tue, 26 Jan 2021 15:13:25 -0500 Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 91344AC065; Tue, 26 Jan 2021 15:12:42 -0500 (EST) (envelope-from junio@pobox.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=loZeegEUgZTbJq1iQNzLKjYdfls=; b=A3XJNH QqKiMRSp5ELdfZNrm3TImF0Z1C29YdlQ+ZbyPaYslu2KUP7m1PWiahrnhHYkXuvD 67q2y9Ybpv/IDIQrbo771iaoQ8AH2llnN+DqtvUNAwbzRNfW21JYZZBBfv7D1k8w Efa30sGeQQZPAmboMhpNAAjunCIJ7slqy2NH4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=qGAV3dLdGG2+f5uRGAP1wR+sdgJRfz3r ARjtTmE0VIzmdjrVDihj4D6TPJBrKXkH2nRjr1S+xpT+ndQy9/lMCzJ+Q//eDPTN j+hFFRGQ4XW+ztgOsu6VJZZiTlqoBbGddpIg60Sb2Xt7UXuivMDltM4r27EhQxWn JBtCtnsJz9w= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id 88DD5AC063; Tue, 26 Jan 2021 15:12:42 -0500 (EST) (envelope-from junio@pobox.com) Received: from pobox.com (unknown [35.196.173.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id 167F2AC062; Tue, 26 Jan 2021 15:12:42 -0500 (EST) (envelope-from junio@pobox.com) From: Junio C Hamano To: Han-Wen Nienhuys Cc: Han-Wen Nienhuys via GitGitGadget , git , Han-Wen Nienhuys Subject: Re: [PATCH] doc/reftable: document how to handle windows References: Date: Tue, 26 Jan 2021 12:12:41 -0800 In-Reply-To: (Han-Wen Nienhuys's message of "Tue, 26 Jan 2021 19:11:50 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: D8646828-6012-11EB-BE19-D152C8D8090B-77302942!pb-smtp1.pobox.com Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Han-Wen Nienhuys writes: > The first two parts of the file name (${min}-${max}) already provide > visibility into what is going on, and the file system timestamp > already indicates which file is newer. I picked a random name as > suffix, as it gets the job done and is simple. OK, as long as two paths of the same ${min}-${max} part would not confuse people, I am perfectly fine. > Or, we could rename to ${min}-${max}-0 and if that fails try > ${min}-${max}-1, and if that fails ${min}-${max}-2 etc. I think that > is somewhat nicer than parsing back a counter from the existing > filenames, but it could have the effect that 1-1-0 could be newer than > 1-1-2. I agree that such an approach that can get fooled by an existing gap would not achieve anything over the ${random} approach. Thanks.