Add --relative-date option to the revision interface
Exposes the infrastructure from 9a8e35e987
.
Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:

committed by
Junio C Hamano

parent
b17fda5c07
commit
3dfb9278df
@ -85,7 +85,7 @@ static void show_commit(struct commit *commit)
|
||||
static char pretty_header[16384];
|
||||
pretty_print_commit(revs.commit_format, commit, ~0,
|
||||
pretty_header, sizeof(pretty_header),
|
||||
revs.abbrev, NULL, NULL);
|
||||
revs.abbrev, NULL, NULL, revs.relative_date);
|
||||
printf("%s%c", pretty_header, hdr_termination);
|
||||
}
|
||||
fflush(stdout);
|
||||
|
Reference in New Issue
Block a user