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

Function get_git_status

commands.cpp:368–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

366}
367
368static void get_git_status (std::ostream& output)
369{
370 // git status -uno --porcelain
371 std::vector<std::string> command;
372 command.push_back("git");
373 command.push_back("status");
374 command.push_back("-uno"); // don't show untracked files
375 command.push_back("--porcelain");
376
377 if (!successful_exit(exec_command(command, output))) {
378 throw Error("'git status' failed - is this a Git repository?");
379 }
380}
381
382// returns filter and diff attributes as a pair
383static std::pair<std::string, std::string> get_file_attributes (const std::string& filename)

Callers 2

unlockFunction · 0.85
lockFunction · 0.85

Calls 3

successful_exitFunction · 0.85
exec_commandFunction · 0.85
ErrorClass · 0.85

Tested by

no test coverage detected