From: Michael J Gruber Date: Mon, 7 Mar 2011 12:31:39 +0000 (+0100) Subject: rev-list/log: factor out revision mark generation X-Git-Tag: v1.7.5-rc0~36^2~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/1df2d656cc442dc057e30b6fb130967e5ae19654?hp=1df2d656cc442dc057e30b6fb130967e5ae19654 rev-list/log: factor out revision mark generation Currently, we have identical code for generating revision marks ('<', '>', '-') in 5 places. Factor out the code to a single function get_revision_mark() for easier maintenance and extensibility. Note that the check for !!revs in graph.c (which gets removed effectively by this patch) is superfluous. Signed-off-by: Michael J Gruber Signed-off-by: Junio C Hamano ---