[PATCH 05/15] pretty: extend pretty_print_context with callback

2013-07-09 Thread Ramkumar Ramachandra
From: Nguyễn Thái Ngọc Duy The struct pretty_print_context contains the context in which the placeholders in format_commit_one() should be parsed. Although format_commit_one() primarily acts as a parser, there is no way for a caller to plug in custom callbacks. Now, callers can: 1. Parse a cus

[PATCH 05/15] pretty: extend pretty_print_context with callback

2013-06-04 Thread Ramkumar Ramachandra
From: Nguyễn Thái Ngọc Duy The struct pretty_print_context contains the context in which the placeholders in format_commit_one() should be parsed. Although format_commit_one() primarily acts as a parser, there is no way for a caller to plug in custom callbacks. Now, callers can: 1. Parse a cus