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

Function determine_whence

builtin/commit.c:198–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198static void determine_whence(struct wt_status *s)
199{
200 if (file_exists(git_path_merge_head(the_repository)))
201 whence = FROM_MERGE;
202 else if (!sequencer_determine_whence(the_repository, &whence))
203 whence = FROM_COMMIT;
204 if (s)
205 s->whence = whence;
206}
207
208static void status_init_config(struct wt_status *s, config_fn_t fn)
209{

Callers 1

status_init_configFunction · 0.85

Calls 2

file_existsFunction · 0.85

Tested by

no test coverage detected