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

Re: Add "git show-ref" builtin command

From
Jakub Narebski <jnareb@gmail.com>
Date
Sep 15, 2006, 21:24 UTC
Message-ID
<eef5m8$euj$1@sea.gmane.org>
In-Reply-To
<7vmz90g80m.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 7 quoted lines
> +<format>::
> +       A string that interpolates `%(fieldname)` from the
> +       object pointed at by a ref being shown.  If `fieldname`
> +       is prefixed with an asterisk (`*`) and the ref points
> +       at a tag object, the value for the field in the object
> +       tag refers is used.  When unspecified, defaults to
> +       `%(refname)`.

Wouldn't it be better to be able to use (or be able to enable, like echo -e option) interpretation of the backslash-escaped characters, like \t, \n, \0?

-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 7 in “Add "git show-ref" builtin command”
  1. Linus TorvaldsSep 15, 2006
  2. Junio C HamanoSep 15, 2006
  3. Jakub NarebskiSep 15, 2006
  4. Junio C HamanoSep 15, 2006
  5. Teach "git checkout" to use git-show-refLinus Torvalds, Sep 15, 2006
  6. Jakub NarebskiSep 15, 2006
  7. Junio C HamanoSep 16, 2006

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.