Skip to content

Commit 81cccae

Browse files
committed
Added simple git2
1 parent a38073a commit 81cccae

File tree

5 files changed

+13
-24
lines changed

5 files changed

+13
-24
lines changed

src/libfetchers-tests/access-tokens.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#include <gtest/gtest.h>
2-
#include <nlohmann/json_fwd.hpp>
2+
#include <nlohmann/json.hpp>
33
#include <map>
44
#include <optional>
55
#include <set>
66
#include <string>
7+
#include <memory>
78

89
#include "nix/fetchers/fetchers.hh"
910
#include "nix/fetchers/fetch-settings.hh"

src/libfetchers-tests/git-utils.cc

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
11
#include <gmock/gmock.h>
2-
#include <git2/global.h>
3-
#include <git2/repository.h>
4-
#include <git2/signature.h>
5-
#include <git2/types.h>
6-
#include <git2/object.h>
7-
#include <git2/tag.h>
82
#include <gtest/gtest.h>
9-
#include <git2/blob.h>
10-
#include <git2/tree.h>
11-
#include <git2/commit.h>
12-
#include <git2/oid.h>
133
#include <string.h>
4+
#include <git2.h>
145
#include <functional>
156
#include <memory>
7+
#include <filesystem>
8+
#include <string>
169

1710
#include "nix/fetchers/git-utils.hh"
1811
#include "nix/util/file-system.hh"
1912
#include "nix/util/fs-sink.hh"
2013
#include "nix/util/error.hh"
14+
#include "nix/util/canon-path.hh"
15+
#include "nix/util/hash.hh"
16+
#include "nix/util/ref.hh"
17+
#include "nix/util/source-accessor.hh"
2118

2219
namespace nix {
2320

src/libfetchers-tests/git.cc

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,9 @@
11
#include <gtest/gtest.h>
2-
#include <git2/clone.h>
3-
#include <git2/commit.h>
4-
#include <git2/errors.h>
5-
#include <git2/global.h>
6-
#include <git2/index.h>
7-
#include <git2/oid.h>
8-
#include <git2/refs.h>
9-
#include <git2/repository.h>
10-
#include <git2/signature.h>
11-
#include <git2/submodule.h>
12-
#include <git2/tree.h>
13-
#include <git2/types.h>
2+
#include <git2.h>
143
#include <filesystem>
154
#include <memory>
165
#include <string>
6+
#include <utility>
177

188
#include "nix/store/globals.hh"
199
#include "nix/store/dummy-store.hh"

src/libfetchers-tests/nix_api_fetchers.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include <gtest/gtest.h>
2+
#include <string>
23

34
#include "nix_api_fetchers.h"
45
#include "nix/store/tests/nix_api_store.hh"

src/libfetchers-tests/public-key.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#include <gtest/gtest.h>
22
#include <boost/container/detail/std_fwd.hpp>
33
#include <nlohmann/json.hpp>
4-
#include <nlohmann/json_fwd.hpp>
54
#include <filesystem>
65
#include <string_view>
76
#include <utility>
7+
#include <string>
88

99
#include "nix/fetchers/fetchers.hh"
1010
#include "nix/util/tests/json-characterization.hh"

0 commit comments

Comments
 (0)