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)
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
2 matches
Mail list logo