Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
git-lfs-fetch.hh File Reference
#include "nix/util/canon-path.hh"
#include "nix/util/serialise.hh"
#include "nix/util/url.hh"
#include <git2/repository.h>
#include <nlohmann/json_fwd.hpp>

Go to the source code of this file.

Classes

struct  nix::lfs::Pointer
struct  nix::lfs::Fetch
struct  nix::lfs::LfsApiInfo

Functions

LfsApiInfo nix::lfs::getLfsApi (ParsedURL url)

Function Documentation

◆ getLfsApi()

LfsApiInfo nix::lfs::getLfsApi ( ParsedURL url)

Try to mimic what git-lfs will do to plain remotes https://github.com/git-lfs/git-lfs/blob/main/docs/api/server-discovery.md

Try to be smarter with remotes ending in a /, like https://github.com/NixOS/nix/. This should be https://github.com/NixOS/nix.git/info/lfs, not https://github.com/NixOS/nix/.git/info/lfs