Skip to content

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

License

Notifications You must be signed in to change notification settings

xxf2103625/Cake_Git

 
 

Repository files navigation

Cake Git

NuGet

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 is 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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 97.2%
  • PowerShell 1.4%
  • Shell 1.3%
  • CoffeeScript 0.1%