From mboxrd@z Thu Jan 1 00:00:00 1970 From: lfleischer at lfos.de (Lukas Fleischer) Date: Sat, 02 Jul 2016 15:30:22 +0200 Subject: [PATCH] Avoid ambiguities when prettifying snapshot names In-Reply-To: <20160524161518.9839-1-lfleischer@lfos.de> References: <20160523045733.GA2784@partyvan.eu> <20160524161518.9839-1-lfleischer@lfos.de> Message-ID: <146746622209.13406.13026183571409299542@typhoon.lan> On Tue, 24 May 2016 at 18:15:18, Lukas Fleischer wrote: > When composing snapshot file names for a tag with a prefix of the form > v[0-9] (resp. V[0-9]), the leading "v" (resp. "V") is stripped. This > leads to conflicts if a tag with the stripped name already exists or if > there are tags only differing in the capitalization of the leading "v". > Make sure we do not strip the "v" in these cases. > > Reported-by: Juuso Lapinlampi > Signed-off-by: Lukas Fleischer > --- > Note: The code that actually generates the snapshots works fine as it > always tries an exact match first. > > ui-refs.c | 24 +++++++++--------------- > ui-shared.c | 26 +++++++++++++++++++++----- > ui-shared.h | 2 ++ > 3 files changed, 32 insertions(+), 20 deletions(-) Any comments on this?