Skip to content

nordseth/Nordseth-Git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nordseth-Git

NuGet (Nordseth.Git)

A small library for reading git repos.

It was written for reading commit information with a managed library for Nibbler, as a replacement for LibGit2Sharp. LibGit2Sharp has large native dependencies that make multiplatform CLI tools about 30 mb larger.

Usage

var repo = new Repo(path);
var (_, hash) = repo.GetHead();
var commit = repo.GetCommit(hash);
Console.WriteLine($"Commit at HEAD: '{commit.MessageShort}' by {commit.Author.Name} at {commit.Author.When}");