From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12830 invoked from network); 20 Jul 2023 09:41:24 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 20 Jul 2023 09:41:24 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1689846084; b=RCqb40MLYZpp4e8hzUhrKUe/ubFU0rrIaLpjw5tmLATrnu8zZeut+znZD+Ry54tNLiUcmzfXqF AG7jxMY6JBiRt/gvo8qG7fzhS3NzUhquah8ax5QTJVOSdxc82YcwC51HJhMAaI3jW8HvCYQ5Xw i8Pf+KicQ5n/pNJO0TzktowysXbZc+pMJ/l4f8aTQJ9W2Lw8QAirjG9ML3LAKSx+tH7nxOys+8 nf//h5JsnKCgWVHEQzD1Y+FL5aKR9Klwz2ORhhk41c7mNW7O+3tNgTXMJXT3Wz+fggveEZm0/4 IUcHGQgtIJli52xCB3UK0ISi6qg3kvls2d437Y+u9yfHeQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f50.google.com) smtp.remote-ip=209.85.218.50; dkim=pass header.d=gmail.com header.s=20221208 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1689846084; bh=t01/dCRWp2j9tLdrrxBMRLH25Uc3XmDMjT7qCveIA/k=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:References: In-Reply-To:MIME-Version:DKIM-Signature:DKIM-Signature; b=gTYNYVPT7AFvyAaW3gd5Obmkrh+cgH/IcLGFM7I1NczaS32tunp+P0babK2zwNURY6fJV89yai gva7yCIzjgde2gH8Gmjwy3Wgq8IgZK2bjAlnXRbGLpinFF5EWigdehqbXt8fw7FyVTz/60IcEH WW9TUADqpTdCmBzqhm/MpgOEjZ/HY43nLbX1VqHr7inljOFBmQtmp+/crgNr+q9FoSqv0CQmP6 zFipeEtiztoBna3G+GfSw7PO88k5dA+edTPrJXQJsQB6FhgYDTmWDMDZ3x3QWS8+JZdcVyCAr/ yZtQwvYx6sMkikkxnoI5kU/tHIpxy4bqMNCrR79ebS/myg==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:References:In-Reply-To:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=AUhO1raiwajhjVriyG+kHHWrHiCZypO+5Qpu/XzxODg=; b=C5eAv7Beza0wEYtDMSyzcTkhum EzBBExO5W/IM8FuKI2oa+fFAjari1C5uzHxiC6DaXrm/pxMTBhU+ZfBZ8DDAMlP1l5tIm9lbwp7+/ aYyQSsphSEkTTAgl3SvvQmKJv8WNcsnoa+k92TNVSa2EXesl6h3CKLuFn0cxsGh+YUkIUnK3BNn7j pV3WVS0AwhKasCFK1P1crCOeXSGqZeKq5oc+sgtstRbBPoUgsHYmzUYqDATXW/D70t3k+FQp7nc1+ qfD03TOc6Tbyh1/6AzuJ6a0lC5lmBYPlXTiWPoXei2u83Dusanx+f8Mr67ePBVAiF9T98jmxoKfoq 5PbSg8iw==; Received: by zero.zsh.org with local id 1qMQ9z-00021G-Ax; Thu, 20 Jul 2023 09:41:23 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f50.google.com) smtp.remote-ip=209.85.218.50; dkim=pass header.d=gmail.com header.s=20221208 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-ej1-f50.google.com ([209.85.218.50]:59522) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1qMQ9g-0001il-7L; Thu, 20 Jul 2023 09:41:06 +0000 Received: by mail-ej1-f50.google.com with SMTP id a640c23a62f3a-98dfb3f9af6so104114466b.2 for ; Thu, 20 Jul 2023 02:41:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689846063; x=1690450863; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=AUhO1raiwajhjVriyG+kHHWrHiCZypO+5Qpu/XzxODg=; b=ssIcfWtJM8EwJUjF/XQsyPXGjj4GMEuHuiWLWPuzbXoZaVVG6raBmEYfFPzWm2IeW9 H2NrYlYiB5pS+7uZWiYjTo7pVcNIUYd9ibaPefnm5GAalhTtJdWAzkbonomLnkF8kX66 dXp2MrbnQdoUByOF4e22SWoRZAfVDfPN0hRf5nkElgiGt6uZO0D3jbvyN11SDt0Gj/qa 1mnGhqGoFdhUZ6XDA0A9y7WqTJRly4yk7AM2nhB8R53lKds5GhiC+vZtmbcwI8Vf6BoZ 7zBgpIA+UHmhrm+kO+R6nlFxovcarC7Sbh9wbkvjOl0/i/bwJs+sZkzIT98Edk736ufr RIQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689846063; x=1690450863; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AUhO1raiwajhjVriyG+kHHWrHiCZypO+5Qpu/XzxODg=; b=XYASLMxj14w5uaOiFQmuLfHrvAWiuijVeI93oj6etAOp5KeGx8gpZAif4e4KJ0MhrC Ko/pKkMtsWWCNjVQ1QucJt0lz2FS0obaBPR/CzFI+Q0nChzHvE0yBUGLo7/8phEg0C76 Lw35JnkDzwY3UfyQ847qUYmnZ1HPBnKYrvcLOD6IoA8Ru6ovuc6nYFpaKiftJyqaq5PW Hqn1nslt7AV+xImT06v2k3/XenAxiyL50brbdzkQ47ZnzMF13YZ3RzCZcWwq9NIhUTfQ 1ENAFj5IRZ1iHhq+NAKagZI2I61U9A9F0hldhNBebAI7T7NRhrj69eYP6q1PNgzLxP9W uTpA== X-Gm-Message-State: ABy/qLblkwVnGezYCvOWJJkHDqwHlzr/PMzhYMzp59ziIsGJnAtw3zFI U45XgeWSlNPgMN2JVRHUXdQyN/AcgRK2cz/MN3zHSaS5 X-Google-Smtp-Source: APBJJlE9WKlaBWX+XVfEUMh3Ea9RvTFMw6Be7RT18vKQF0o2VfzrhZsN0ryRh9HptNwc1If4MZH3DOEzZhu/Tn9MsqM= X-Received: by 2002:a17:906:10cd:b0:993:d97f:ae06 with SMTP id v13-20020a17090610cd00b00993d97fae06mr4542932ejv.13.1689846063207; Thu, 20 Jul 2023 02:41:03 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a17:907:320d:b0:977:e915:2f69 with HTTP; Thu, 20 Jul 2023 02:41:02 -0700 (PDT) In-Reply-To: References: From: Mikael Magnusson Date: Thu, 20 Jul 2023 11:41:02 +0200 Message-ID: Subject: Re: Minor "git" irritation To: Bart Schaefer Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 51978 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On 7/20/23, Bart Schaefer wrote: > At some point in the past I tagged a revision in my local clone so that I > could easily run diffs against that initial state. > > Now "git describe --tags" returns that tag name, which ends up in > $ZSH_PATCHLEVEL, which is not correct. "git fetch --tags" does not change > this. Perhaps we should change the code in Makefile to not use git describe --tags; without --tags it will only use annotated or signed tags, which we do use for release tags. You would almost never annotate a throwaway tag like the one you created so it should be correct in more cases. > However, "git tag --delete $(git describe --tags)" says "tag not found". I > don't know how it's possible for describe to return a tag that doesn't > exist, or how it got that way, but here I am. > > How do I get rid of that tag? I've read the doc for "git fetch --prune > --prune-tags" but that sounds as if it'll remove other local references > that don't exist on the origin, which is not what I want. Like the other reply said, you want just the name of the tag, so if your ZSH_PATCHLEVEL is sometag-293-g238abc then you want just "git tag -d sometag", you should also be able to tab complete it :). -- Mikael Magnusson