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

Plumbing commands (was: Bug report - git show <tagname> together with --pretty=format)

From
TLTeemu Likonen <tlikonen@iki.fi>
Date
Apr 8, 2009, 19:47 UTC
Message-ID
<87myarszat.fsf_-_@iki.fi>
In-Reply-To
<adf1fd3d0904080937v634c5b69rffa7a737f22a3768@mail.gmail.com>
On 2009-04-08 18:37 (+0200), Santi Béjar wrote:
> In addition to what Michael said, you should use the plumbing commands
> instead of the porcelain (see man git). They are specifically for use
> with scripts and parse their output. The output from the porcelain
> commands can change.
Hmm, I've been using a command like this in a script:
    date=$(git log -1 --pretty=format:%ai $REV)
Would it be better to change it to
    date=$(git rev-list -1 --pretty=format:%ai $REV | sed -e 1d)
or something else?
Previous: Santi Béjar
Message 4 of 4 in “Bug report - git show <tagname> together with --pretty=format”
  1. CorneliusApr 8, 2009
  2. Michael J GruberApr 8, 2009
  3. Santi BéjarApr 8, 2009
  4. Plumbing commands (was: Bug report - git show <tagname> together with --pretty=format)Teemu Likonen, Apr 8, 2009

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.