author | Michael J Gruber <git@drmicha.warpmail.net> | |
Mon, 7 Mar 2011 12:31:39 +0000 (13:31 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 9 Mar 2011 21:50:54 +0000 (13:50 -0800) | ||
commit | 1df2d656cc442dc057e30b6fb130967e5ae19654 | |
tree | 6290981baed52c65c997e7e0eb172651d9af26ff | tree | snapshot |
parent | 24852d917104e294726c54803d5c9012997506ca | commit | diff |
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 <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/rev-list.c | diff | blob | history | |
graph.c | diff | blob | history | |
log-tree.c | diff | blob | history | |
pretty.c | diff | blob | history | |
revision.c | diff | blob | history | |
revision.h | diff | blob | history |