diff options
| author | dacctal <dacctal@symlinx.net> | 2026-05-24 10:23:38 +0000 |
|---|---|---|
| committer | dacctal <dacctal@symlinx.net> | 2026-05-24 10:23:38 +0000 |
| commit | aa0d78815004ae6b0c4a42b0e024f5c4ef555ae2 (patch) | |
| tree | 62f97b4c5acfdb98003568466f878fbd3d6b9dfb /src/is_updated.cc | |
| parent | 83d471f2c1d1b1fa6be51f41e4f1c36ab19d7094 (diff) | |
c rewrite
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; -} |
