Jeff King <peff@xxxxxxxx> writes: > git tag -v --format='%(tag)%n%(tagger)' > > or similar. In fact you can already do that with a separate step (modulo > %n, which we do not seem to understand here), but like your example: Yes, "--format=%(tag)" is all that is needed to make the example work. >> Or it could even do this: >> >> tag="$1" >> if ! git tag -v "$tag" >> if ! git tag -v "$tag" >> then >> echo >&2 "Bad tag." >> exit 1 >> fi >> + tag=$(git tag --show-tagname $tag) >> make dest=/usr/local/$package/$tag install > > It is racy. That probably doesn't matter for most callers, but it would > be nice to be able to get a custom format out of the "-v" invocation. Heh, you can do - tag="$1" + tag=$(git rev-parse --verify "$1") upfront and it no longer is racy, no? -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html