cake-contrib / Cake_Git

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

Home Page:https://cakebuild.net/extensions/cake-git

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`GitCommit` without name and email

lonix1 opened this issue · comments

Is it possible to perform GitCommit() without the name and email?

The same as is possible in the shell - it would use the defaults for the repo.

i.e. in the shell I can just do this: $ git commit -m message

var name = GitConfigGet<string>(repoDirectory, "user.name"));
var email = GitConfigGet<string>(repoDirectory, "user.email");

GitCommit(repoDirectory, name, email, "message");