From aa0d78815004ae6b0c4a42b0e024f5c4ef555ae2 Mon Sep 17 00:00:00 2001 From: dacctal Date: Sun, 24 May 2026 10:23:38 +0000 Subject: c rewrite --- src/is_updated.cc | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 src/is_updated.cc (limited to 'src/is_updated.cc') 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 - -#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; -} -- cgit v1.2.3