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

Function dry_run_commit

builtin/commit.c:1428–1439  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1426}
1427
1428static int dry_run_commit(const char **argv, const char *prefix,
1429 const struct commit *current_head, struct wt_status *s)
1430{
1431 int committable;
1432 const char *index_file;
1433
1434 index_file = prepare_index(argv, prefix, current_head, 1);
1435 committable = run_status(stdout, index_file, prefix, 0, s);
1436 rollback_index_files();
1437
1438 return committable ? 0 : 1;
1439}
1440
1441define_list_config_array_extra(color_status_slots, {"added"});
1442

Callers 1

cmd_commitFunction · 0.85

Calls 3

prepare_indexFunction · 0.85
rollback_index_filesFunction · 0.85
run_statusFunction · 0.70

Tested by

no test coverage detected