about summary refs log blame commit diff
path: root/src/libexpr/primops/fetchgit.hh
blob: 056b6fcbe78d7a42258d5fe5ac7fd45c3767f1c3 (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                 
                  




               








                                                            

                                                          

 
#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 = "");

}