[PATCH] Avoid ambiguities when prettifying snapshot names

Lukas Fleischer lfleischer at lfos.de
Sat Jul 2 15:30:22 CEST 2016


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 <wub at partyvan.eu>
> Signed-off-by: Lukas Fleischer <lfleischer at lfos.de>
> ---
> 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?


More information about the CGit mailing list