cake-contrib / Cake_Git

Cake AddIn that extends Cake with Git features using LibGit2 and LibGit2Sharp
https://cakebuild.net/extensions/cake-git
Other
39 stars 64 forks source link

`GitCommit` without name and email #164

Closed lonix1 closed 2 years ago

lonix1 commented 2 years ago

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

lonix1 commented 2 years ago
var name = GitConfigGet<string>(repoDirectory, "user.name"));
var email = GitConfigGet<string>(repoDirectory, "user.email");

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