Re: [PATCH 3/3] add a "lua" pretty format

2012-10-06 Thread Jeff King
On Mon, Sep 24, 2012 at 08:25:39PM -0400, Jeff King wrote: > @@ -1168,7 +1180,11 @@ void format_commit_message(const struct commit *commit, > free(enc); > } > > - strbuf_expand(sb, format, format_commit_item, &context); > + if (pretty_ctx->fmt == CMIT_FMT_USERFORMAT)

[PATCH 3/3] add a "lua" pretty format

2012-09-24 Thread Jeff King
With this patch, you can do: git log --pretty=lua:' return abbrev(hash()) .. " (" .. author().email .. ") " .. subject() ' Signed-off-by: Jeff King --- commit.h | 1 + log-tree.c | 3 ++- pretty.c | 21 +++-- 3 files changed, 22 insertions(+), 3 deletions(-) diff