aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/primops/fetchGit.hh
blob: 60c439426158158764d47d9c466554a2ac7ca10f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include "store-api.hh"

#include <regex>

namespace nix {

struct GitInfo
{
    Path storePath;
    std::string rev;
    std::string shortRev;
    std::optional<uint64_t> revCount;
};

GitInfo exportGit(ref<Store> store, const std::string & uri,
    std::optional<std::string> ref, std::string rev,
    const std::string & name);

}