about summary refs log tree commit diff
path: root/src/libexpr/primops/fetchgit.hh
blob: 818ab7102e973d35ee3957d5e166dd4d1965fc68 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once

#include <string>

#include "util.hh"

namespace nix {

class Store;

struct GitInfo
{
    Path storePath;
    std::string rev;
    std::string shortRev;
    uint64_t revCount = 0;
};

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

}