discontinuedPackage git_assistant has been discontinued.

Git class

Provides utilities to work with git.

Command Generator

Generates the command sequence in piece of cake.

var git = Git();
print(git); // 'git'
print(git.log.prettyOpt(PF.oneline)); // 'git log --pretty=oneline'

Command Executer

Executes the generated command sequence.

var git = Git();
// executes 'git log --pretty=email' and returns the output
git.log.prettyOpt(PF.email).exec();
git.exec(); // executes 'git' and returns git help.
Inheritance

Constructors

Git()

Properties

argList → List<String>
Generates command sequence and returns it as List<String> to use in exec, toString and other functionalities in subclasses.
no setterinherited
chainName → String
The current chain name, which is used in generating command in argList.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
log → LogGitChain
Git log command
no setter
prevChain → BaseGitChain?
Refers to the previous chain of the current chain that use in argList to generate command sequence.
finalinherited
push → PushGitChain
Git push command
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

exec() → dynamic
Executes the generated command in the argList and returns the result.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited