diff options
author | Michael J Gruber <git@drmicha.warpmail.net> | 2011-04-01 11:20:31 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-04-01 14:42:25 -0700 |
commit | ef803fd4b09bca707c7c27669a2789bb050b488c (patch) | |
tree | cad535fbfa0afd570bbbc75efac196bcc5e3afb7 /builtin/reset.c | |
parent | parse-remote: typofix (diff) | |
download | tgif-ef803fd4b09bca707c7c27669a2789bb050b488c.tar.xz |
builtin/log.c: separate default and setup of cmd_log_init()
cmd_log_init() sets up some default rev options and then calls
setup_revisions(), so that a caller cannot set up own defaults: Either
they get overriden by cmd_log_init() (if set before) or they override
the command line (if set after). We even complain about this in a
comment to cmd_log_reflog().
Therefore, separate the two steps so that one can still call
cmd_log_init() or, alternatively, cmd_log_init_defaults() followed by
cmd_log_init_finish() (and set defaults in between).
No functional change so far.
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/reset.c')
0 files changed, 0 insertions, 0 deletions