| 366 | } |
| 367 | |
| 368 | static 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 |
| 383 | static std::pair<std::string, std::string> get_file_attributes (const std::string& filename) |
no test coverage detected