feat: allow to update vcs changed files info for current project

This commit is contained in:
Igor Támara 2025-10-25 08:31:45 -05:00 committed by CJ van den Berg
parent 8d0fa9a355
commit fdf2b6d376
3 changed files with 20 additions and 0 deletions

View file

@ -2174,6 +2174,8 @@ pub fn query_git(self: *Self) void {
self.state.status = .failed;
};
// TODO: This needs to be invoked when there are identified changes in the fs
for (self.new_or_modified_files.items) |file| self.allocator.free(file.path);
self.new_or_modified_files.clearRetainingCapacity();
self.state.vcs_new_or_modified_files = .running;
git.new_or_modified_files(@intFromPtr(self)) catch {
self.state.vcs_new_or_modified_files = .failed;