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

#include "store-api.hh"

#include <regex>

namespace nix {

struct GitInfo
{
    Path storePath;
    std::string ref;
    Hash rev{htSHA1};
    uint64_t revCount;
};

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

}