about summary refs log tree commit diff
path: root/src/libexpr/primops/fetchgit.hh
blob: 056b6fcbe78d7a42258d5fe5ac7fd45c3767f1c3 (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
#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,
    const std::string & ref, const std::string & rev = "",
    const std::string & name = "");

}