Cake AddIn that extends Cake with Git features using LibGit2 and LibGit2Sharp
C# PowerShell Shell
Latest commit 11a11f7 Jan 10, 2017 @devlead devlead POSIX Fixes
Permalink
Failed to load latest commit information.
src POSIX Fixes Jan 10, 2017
tools POSIX Fixes Jan 10, 2017
.gitignore
.travis.yml Add bash bootstrapper and travis config May 26, 2016
LICENSE
NuGet.Config POSIX Fixes Jan 10, 2017
README.md Updated README.md Aug 16, 2016
ReleaseNotes.md Fixed GitPull null issue Jan 9, 2017
appveyor.yml Changed AppVeyor os image to VS2015 Dec 12, 2015
build.cake POSIX Fixes Jan 10, 2017
build.ps1
build.sh POSIX Fixes Jan 10, 2017
test.cake Change test to use addin directive Jan 9, 2017

README.md

Cake Git

NuGet MyGet

Cake AddIn that extends Cake with Git features using LibGit2 and LibGit2Sharp

Build server Platform Status
AppVeyor Windows Build status
Travis Linux / OS X Build Status

Documentation

Documentation available at cakebuild.net/dsl/git

Example usage

#addin nuget:?package=Cake.Git

var lastCommit = GitLogTip("PATH TO REPOSITORY");

Information(@"Last commit {0}
    Short message: {1}
    Author:        {2}
    Authored:      {3:yyyy-MM-dd HH:mm:ss}
    Committer:     {4}
    Committed:     {5:yyyy-MM-dd HH:mm:ss}",
    lastCommit.Sha,
    lastCommit.MessageShort,
    lastCommit.Author.Name,
    lastCommit.Author.When,
    lastCommit.Committer.Name,
    lastCommit.Committer.When
    );

Example output

Last commit fb5b9805e543d8d1715886f78c273dc45b51a928
    Short message: Added Travis test folding
    Author:        Mattias Karlsson
    Authored:      2016-08-16 085836
    Committer:     Mattias Karlsson
    Committed:     2016-08-16 085836