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

Function cmd_whatchanged

builtin/log.c:526–567  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

524
525#ifndef WITH_BREAKING_CHANGES
526int cmd_whatchanged(int argc,
527 const char **argv,
528 const char *prefix,
529 struct repository *repo UNUSED)
530{
531 struct log_config cfg;
532 struct rev_info rev;
533 struct setup_revision_opt opt;
534 int ret;
535
536 log_config_init(&cfg);
537 init_diff_ui_defaults();
538 repo_config(the_repository, git_log_config, &cfg);
539
540 repo_init_revisions(the_repository, &rev, prefix);
541 repo_config(the_repository, grep_config, &rev.grep_filter);
542
543 rev.diff = 1;
544 rev.simplify_history = 0;
545 memset(&opt, 0, sizeof(opt));
546 opt.def = "HEAD";
547 opt.revarg_opt = REVARG_COMMITTISH;
548 cmd_log_init(argc, argv, prefix, &rev, &opt, &cfg);
549
550 if (!cfg.i_still_use_this)
551 you_still_use_that("git whatchanged",
552 _("\n"
553 "hint: You can replace 'git whatchanged <opts>' with:\n"
554 "hint:\tgit log <opts> --raw --no-merges\n"
555 "hint: Or make an alias:\n"
556 "hint:\tgit config set --global alias.whatchanged 'log --raw --no-merges'\n"
557 "\n"));
558
559 if (!rev.diffopt.output_format)
560 rev.diffopt.output_format = DIFF_FORMAT_RAW;
561
562 ret = cmd_log_walk(&rev);
563
564 release_revisions(&rev);
565 log_config_release(&cfg);
566 return ret;
567}
568#endif
569
570static void show_tagger(const char *buf, struct rev_info *rev)

Callers

nothing calls this directly

Calls 9

log_config_initFunction · 0.85
init_diff_ui_defaultsFunction · 0.85
repo_init_revisionsFunction · 0.85
cmd_log_initFunction · 0.85
you_still_use_thatFunction · 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