git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Fix "git tag -u" breakage

From
APAndy Parkins <andyparkins@gmail.com>
Date
Jan 31, 2007, 08:37 UTC
Message-ID
<200701310838.01295.andyparkins@gmail.com>
In-Reply-To
<7vsldrx08q.fsf@assigned-by-dhcp.cox.net>
On Wednesday 2007 January 31 04:56, Junio C Hamano wrote:
> Sorry, and thanks.

Apologies - I thought I had searched for all instances of username in the script. Perhaps I just looked for $username. Duh.

> There was no reason to introduce a separate variable keyid to
> begin with.  I should have been more careful to read what was
> outside of the patch.

The change of name was to indicate that the variable isn't actually holding a username anymore, it really is a key ID. GPG will let you specify a key in a number of ways, only one of which is by username. Therefore, I think a better patch would be to finish what I started and change the remaining two instances of username to keyid.

diff --git a/git-tag.sh b/git-tag.sh
index 988bf4c..0898a70 100755
--- a/git-tag.sh
+++ b/git-tag.sh
@@ -10,7 +10,7 @@ annotate=
 signed=
 force=
 message=
-username=
+keyid=
 list=
 verify=
 while case "$#" in 0) break ;; esac
@@ -59,7 +59,7 @@ do
    annotate=1
    signed=1
    shift
-   username="$1"
+   keyid="$1"
    ;;
     -d)
        shift



Andy
-- 
Dr Andy Parkins, M Eng (hons), MIEE
andyparkins@gmail.com
Previous: Junio C Hamano
Message 3 of 3 in “Fix "git tag -u" breakage”
  1. Linus TorvaldsJan 31, 2007
  2. Junio C HamanoJan 31, 2007
  3. Andy ParkinsJan 31, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.