diff options
Diffstat (limited to 'src/is_updated.cc')
| -rw-r--r-- | src/is_updated.cc | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/is_updated.cc b/src/is_updated.cc deleted file mode 100644 index b2c3b43..0000000 --- a/src/is_updated.cc +++ /dev/null @@ -1,13 +0,0 @@ -#include <filesystem> - -#include "is_updated.hh" -#include "cmd_out.hh" - -bool is_updated(std::string src) { - if (src != std::filesystem::current_path().string()) { - if (!std::filesystem::exists(src)) { return false; } - std::filesystem::current_path(src); - } - if (cmd_out("git pull") == "Already up to date.") { return true; } - return false; -} |
