| 1667 | } |
| 1668 | |
| 1669 | static 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 | |
| 1698 | int cmd_commit(int argc, |
| 1699 | const char **argv, |
nothing calls this directly
no test coverage detected