MCPcopy Create free account
hub / github.com/git/git / cmd_log

Function cmd_log

builtin/log.c:825–854  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

823}
824
825int cmd_log(int argc,
826 const char **argv,
827 const char *prefix,
828 struct repository *repo UNUSED)
829{
830 struct log_config cfg;
831 struct rev_info rev;
832 struct setup_revision_opt opt;
833 int ret;
834
835 log_config_init(&cfg);
836 init_diff_ui_defaults();
837 repo_config(the_repository, git_log_config, &cfg);
838
839 repo_init_revisions(the_repository, &rev, prefix);
840 repo_config(the_repository, grep_config, &rev.grep_filter);
841
842 rev.always_show_header = 1;
843 memset(&opt, 0, sizeof(opt));
844 opt.def = "HEAD";
845 opt.revarg_opt = REVARG_COMMITTISH;
846 opt.tweak = log_setup_revisions_tweak;
847 cmd_log_init(argc, argv, prefix, &rev, &opt, &cfg);
848
849 ret = cmd_log_walk(&rev);
850
851 release_revisions(&rev);
852 log_config_release(&cfg);
853 return ret;
854}
855
856/* format-patch */
857

Callers

nothing calls this directly

Calls 8

log_config_initFunction · 0.85
init_diff_ui_defaultsFunction · 0.85
repo_init_revisionsFunction · 0.85
cmd_log_initFunction · 0.85
cmd_log_walkFunction · 0.85
release_revisionsFunction · 0.85
log_config_releaseFunction · 0.85
repo_configFunction · 0.50

Tested by

no test coverage detected