|
|
|
@ -5,6 +5,7 @@
@@ -5,6 +5,7 @@
|
|
|
|
|
* 2006 Junio Hamano |
|
|
|
|
*/ |
|
|
|
|
#include "cache.h" |
|
|
|
|
#include "color.h" |
|
|
|
|
#include "commit.h" |
|
|
|
|
#include "diff.h" |
|
|
|
|
#include "revision.h" |
|
|
|
@ -235,6 +236,10 @@ int cmd_whatchanged(int argc, const char **argv, const char *prefix)
@@ -235,6 +236,10 @@ int cmd_whatchanged(int argc, const char **argv, const char *prefix)
|
|
|
|
|
struct rev_info rev; |
|
|
|
|
|
|
|
|
|
git_config(git_log_config); |
|
|
|
|
|
|
|
|
|
if (diff_use_color_default == -1) |
|
|
|
|
diff_use_color_default = git_use_color_default; |
|
|
|
|
|
|
|
|
|
init_revisions(&rev, prefix); |
|
|
|
|
rev.diff = 1; |
|
|
|
|
rev.simplify_history = 0; |
|
|
|
@ -307,6 +312,10 @@ int cmd_show(int argc, const char **argv, const char *prefix)
@@ -307,6 +312,10 @@ int cmd_show(int argc, const char **argv, const char *prefix)
|
|
|
|
|
int i, count, ret = 0; |
|
|
|
|
|
|
|
|
|
git_config(git_log_config); |
|
|
|
|
|
|
|
|
|
if (diff_use_color_default == -1) |
|
|
|
|
diff_use_color_default = git_use_color_default; |
|
|
|
|
|
|
|
|
|
init_revisions(&rev, prefix); |
|
|
|
|
rev.diff = 1; |
|
|
|
|
rev.combine_merges = 1; |
|
|
|
@ -367,6 +376,10 @@ int cmd_log_reflog(int argc, const char **argv, const char *prefix)
@@ -367,6 +376,10 @@ int cmd_log_reflog(int argc, const char **argv, const char *prefix)
|
|
|
|
|
struct rev_info rev; |
|
|
|
|
|
|
|
|
|
git_config(git_log_config); |
|
|
|
|
|
|
|
|
|
if (diff_use_color_default == -1) |
|
|
|
|
diff_use_color_default = git_use_color_default; |
|
|
|
|
|
|
|
|
|
init_revisions(&rev, prefix); |
|
|
|
|
init_reflog_walk(&rev.reflog_info); |
|
|
|
|
rev.abbrev_commit = 1; |
|
|
|
@ -395,6 +408,10 @@ int cmd_log(int argc, const char **argv, const char *prefix)
@@ -395,6 +408,10 @@ int cmd_log(int argc, const char **argv, const char *prefix)
|
|
|
|
|
struct rev_info rev; |
|
|
|
|
|
|
|
|
|
git_config(git_log_config); |
|
|
|
|
|
|
|
|
|
if (diff_use_color_default == -1) |
|
|
|
|
diff_use_color_default = git_use_color_default; |
|
|
|
|
|
|
|
|
|
init_revisions(&rev, prefix); |
|
|
|
|
rev.always_show_header = 1; |
|
|
|
|
cmd_log_init(argc, argv, prefix, &rev); |
|
|
|
|