nordseth / Nordseth-Git

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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}");

About


Languages

Language:C# 100.0%