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

Function check_write

builtin/config.c:812–822  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

810}
811
812static void check_write(const struct git_config_source *source)
813{
814 if (!source->file && !startup_info->have_repository)
815 die(_("not in a git directory"));
816
817 if (source->use_stdin)
818 die(_("writing to stdin is not supported"));
819
820 if (source->blob)
821 die(_("writing config blobs is not supported"));
822}
823
824struct urlmatch_current_candidate_value {
825 char value_is_null;

Callers 6

cmd_config_setFunction · 0.85
cmd_config_unsetFunction · 0.85
cmd_config_editFunction · 0.85
cmd_config_actionsFunction · 0.85

Calls 1

dieFunction · 0.50

Tested by

no test coverage detected