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

Re: [1.8.0 RFD] Homogeneous use of short options

From
Jay Soffian <jaysoffian@gmail.com>
Date
Feb 14, 2011, 19:03 UTC
Message-ID
<AANLkTi=PGwYz_GbYT3UR00UrhMi5KP_KU1y-+g+Qo1n9@mail.gmail.com>
In-Reply-To
<4D594460.1040206@drmicha.warpmail.net>

On Mon, Feb 14, 2011 at 10:04 AM, Michael J Gruber <git@drmicha.warpmail.net> wrote:

> tag -v: This is not a real problem, but users have certain expections
> for "-f,-h,-n,-v" which we should break as rarely as possible. OTOH,
> what would "verbose" mean for tag? (NB: tag.txt is grossly wrong.)
I made mine look like branch -v:
$ cat bin/git-tagv
#!/bin/sh
format='
case %(objecttype) in
  commit)
    sha1=%(objectname:short)
    subject=%(subject)
    ;;
  tag)
    sha1=%(*objectname:short)
    subject=%(*subject)
    ;;
esac
printf "%s\t%s\t%s\n" %(refname:short) "$sha1" "$subject"
'
eval "$(git for-each-ref --shell --format="$format" refs/tags)" |
column -t -s "$(printf '\t')"
j.
Previous: Nguyen Thai Ngoc DuyNext: Junio C Hamano
Message 3 of 6 in “[1.8.0 RFD] Homogeneous use of short options”
  1. Michael J GruberFeb 14, 2011
  2. Nguyen Thai Ngoc DuyFeb 14, 2011
  3. Jay SoffianFeb 14, 2011
  4. Junio C HamanoFeb 14, 2011
  5. Miles BaderFeb 15, 2011
  6. Michael J GruberFeb 15, 2011

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.