Updated to use the latest libgit2 1.9.0 and GCC14.
This commit is contained in:
parent
62785d463c
commit
2d81f900be
10 changed files with 29 additions and 35 deletions
|
@ -1,5 +1,7 @@
|
|||
#include "watcher.hpp"
|
||||
#include <filesystem>
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
|
||||
using std::string;
|
||||
namespace fs = std::filesystem;
|
||||
|
@ -10,7 +12,6 @@ void UpdateListener::handleFileAction(efsw::WatchID watchid,
|
|||
efsw::Action action,
|
||||
string oldFilename)
|
||||
{
|
||||
|
||||
// this is some gnarly BS here, probably tons
|
||||
// of memory leaks for now but it's working
|
||||
int ignored = 1;
|
||||
|
@ -21,6 +22,7 @@ void UpdateListener::handleFileAction(efsw::WatchID watchid,
|
|||
full_path.end(), '\\', '/');
|
||||
|
||||
int rc = git_ignore_path_is_ignored(&ignored, repo, full_path.c_str());
|
||||
assert(rc == 0 && "libgit2 says it can't check the ignored file");
|
||||
|
||||
if(!ignored) {
|
||||
changes = changes || !ignored;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue