MCPcopy Create free account
hub / github.com/AGWA/git-crypt / git_has_config

Function git_has_config

commands.cpp:127–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127static bool git_has_config (const std::string& name)
128{
129 std::vector<std::string> command;
130 command.push_back("git");
131 command.push_back("config");
132 command.push_back("--get-all");
133 command.push_back(name);
134
135 std::stringstream output;
136 switch (exit_status(exec_command(command, output))) {
137 case 0: return true;
138 case 1: return false;
139 default: throw Error("'git config' failed");
140 }
141}
142
143static void git_deconfig (const std::string& name)
144{

Callers 2

deconfigure_git_filtersFunction · 0.85
get_repo_state_pathFunction · 0.85

Calls 3

exec_commandFunction · 0.85
ErrorClass · 0.85
exit_statusFunction · 0.70

Tested by

no test coverage detected