Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
nix::git::LsRemoteRefLine Struct Reference

#include <git.hh>

Public Types

enum struct  Kind { Symbolic , Object }
 

Public Attributes

Kind kind
 
std::string target
 
std::optional< std::string > reference
 

Detailed Description

A line from the output of git ls-remote --symref.

These can be of two kinds:

  • Symbolic references of the form

    ref: {target} {reference}
    Definition ref.hh:15

    where {target} is itself a reference and {reference} is optional

  • Object references of the form

    {target} {reference}

    where {target} is a commit id and {reference} is mandatory


The documentation for this struct was generated from the following file: