X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=builtin%2Flog.c;h=eaa1ee0fa71a344af747dec038c6a5907c8273a5;hb=385cc9d8c44eb5be9d57e630129752a72c0a08c8;hp=7cb9317af7d7de95197244b60cb90fbac8ddd947;hpb=01aedc930b6c3b46d229e33ac6f70b3d91fc1d2b;p=git.git diff --git a/builtin/log.c b/builtin/log.c index 7cb9317af..eaa1ee0fa 100644 --- a/builtin/log.c +++ b/builtin/log.c @@ -125,6 +125,7 @@ static void cmd_log_init(int argc, const char **argv, const char *prefix, rev->show_decorations = 1; load_ref_decorations(decoration_style); } + setup_pager(); } /* @@ -296,6 +297,9 @@ static int git_log_config(const char *var, const char *value, void *cb) default_show_root = git_config_bool(var, value); return 0; } + if (!prefixcmp(var, "color.decorate.")) + return parse_decorate_color_config(var, 15, value); + return git_diff_ui_config(var, value, cb); } @@ -488,12 +492,6 @@ int cmd_log_reflog(int argc, const char **argv, const char *prefix) rev.use_terminator = 1; rev.always_show_header = 1; - /* - * We get called through "git reflog", so unlike the other log - * routines, we need to set up our pager manually.. - */ - setup_pager(); - return cmd_log_walk(&rev); }