From: Brian Swetland <swetland@google.com>
To: git@vger.kernel.org
Subject: something like git-for-each-ref's --format for commits?
Date: Sun, 6 Jan 2008 00:52:21 -0800 [thread overview]
Message-ID: <20080106085221.GA1729@bulgaria.corp.google.com> (raw)
I'm trying to obtain various information about commits from a script.
The --format option to git-for-each-ref would be perfect, except that
it only operates on refs, not arbitrary commit objects.
The --pretty=format:... option for git-log, etc has the annoying
property of giving you <unknown> instead of an empty string if an
item isn't example (say if you use %b on a commit with no body).
Am I missing some obvious solution here?
Thanks,
Brian
next reply other threads:[~2008-01-06 8:53 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-06 8:52 Brian Swetland [this message]
2008-01-06 9:05 ` something like git-for-each-ref's --format for commits? Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080106085221.GA1729@bulgaria.corp.google.com \
--to=swetland@google.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).