MCPcopy Index your code
hub / github.com/git/git / git_commit_config

Function git_commit_config

builtin/commit.c:1669–1696  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1667}
1668
1669static int git_commit_config(const char *k, const char *v,
1670 const struct config_context *ctx, void *cb)
1671{
1672 struct wt_status *s = cb;
1673
1674 if (!strcmp(k, "commit.template"))
1675 return git_config_pathname(&template_file, k, v);
1676 if (!strcmp(k, "commit.status")) {
1677 include_status = git_config_bool(k, v);
1678 return 0;
1679 }
1680 if (!strcmp(k, "commit.cleanup")) {
1681 FREE_AND_NULL(cleanup_config);
1682 return git_config_string(&cleanup_config, k, v);
1683 }
1684 if (!strcmp(k, "commit.gpgsign")) {
1685 sign_commit = git_config_bool(k, v) ? "" : NULL;
1686 return 0;
1687 }
1688 if (!strcmp(k, "commit.verbose")) {
1689 int is_bool;
1690 config_commit_verbose = git_config_bool_or_int(k, v, ctx->kvi,
1691 &is_bool);
1692 return 0;
1693 }
1694
1695 return git_status_config(k, v, ctx, s);
1696}
1697
1698int cmd_commit(int argc,
1699 const char **argv,

Callers

nothing calls this directly

Calls 5

git_config_pathnameFunction · 0.85
git_config_boolFunction · 0.85
git_config_stringFunction · 0.85
git_config_bool_or_intFunction · 0.85
git_status_configFunction · 0.85

Tested by

no test coverage detected