This is the second version of the user-configurable revision display patch. The first version decreased the efficiency of the default case, while this avoids it thanks to a suggestion by Junio.
The first version of this patch also failed to customize the display of revisions included in newly-created branches; this version displays those revisions in the same manner as for updated branches.
The two places (new vs. updated branches) where the original code displayed revisions used similar code. The first patch in this series factors that out to a separate routine that handles both cases, in order to avoid duplicating the code introduced in the second patch.
Pete Harlan (2):
contrib/hooks/post-receive-email: Put rev display in separate
function
contrib/hooks/post-receive-email: Make revision display configurablecontrib/hooks/post-receive-email | 57 ++++++++++++++++++++++++++++++++------ 1 files changed, 48 insertions(+), 9 deletions(-)