navid/veins / commit
8001ccbc234a
Navid M <navidmomtahen@gmail.com> · 2026-11-28
parents: 5f489932bf8c
Browse files at this commit · Download source
--- a/xveins/src/cli/net_commands.cpp+++ b/xveins/src/cli/net_commands.cpp@@ -359,8 +359,7 @@ return std::move(walker.chunk_out); } -std::vector<Id> collect_commits_until(Store& store, std::span<const Id> start,- const IdSet& stop) {+std::vector<Id> collect_commits_until(Store& store, std::span<const Id> start, const IdSet& stop) { std::vector<Id> out; std::vector<Id> stack; IdSet seen;@@ -386,7 +385,7 @@ } std::vector<Id> objects_for_commit_deltas(Store& store, const std::vector<Id>& commits,- const std::function<void(std::size_t)>& progress = {}) {+ const std::function<void(std::size_t)>& progress = {}) { Walker walker{store, true}; std::size_t done = 0; for (const auto& id : commits) {@@ -1097,8 +1096,8 @@ std::vector<Id> objects; if (!commits.empty()) { Progress progress("collecting objects", commits.size());- objects = objects_for_commit_deltas(- store, commits, [&](std::size_t done) { progress.update(done); });+ objects = objects_for_commit_deltas(store, commits,+ [&](std::size_t done) { progress.update(done); }); progress.finish(); } bool pushed = true;--- a/xveins/src/refs/bookmark.cpp+++ b/xveins/src/refs/bookmark.cpp@@ -1,6 +1,6 @@ #include "cli/local_commands.h"-#include "worktree/pathspec.h" #include "store/store.h"+#include "worktree/pathspec.h" #include "worktree/worktree.h" #include <algorithm>--- a/xveins/src/server/server.cpp+++ b/xveins/src/server/server.cpp@@ -4,8 +4,8 @@ #include "crypto/crypto.h" #include "net/net.h" #include "protocol/protocol.h"-#include "store/store.h" #include "protocol/wire.h"+#include "store/store.h" #include <blake3.h> --- a/xveins/src/worktree/exclude.cpp+++ b/xveins/src/worktree/exclude.cpp@@ -1,7 +1,7 @@ #include "cli/local_commands.h" -#include "worktree/pathspec.h" #include "store/store.h"+#include "worktree/pathspec.h" #include <iostream> #include <string_view>