Thread (1 message) 1 message, 1 author, 2016-06-15

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

From: Teemu Likonen <hidden>
Date: 2016-06-15 22:46:35

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?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help