discontinuedPackage git_assistant has been discontinued.

atLeast method

LogGitChain atLeast(
  1. int count
)

Generates -{count of last commit} option

For example:

git log -5 --pretty=full

Shows you last five commits and in your code will be:

var git = Git();
print(git.log.atLeast(2).prettyOpt(PF.full).exec());

Implementation

LogGitChain atLeast(int count) {
  return _createLogOption('-$count');
}