LogGitChain class
Git log command class.
Provides log command options in simple way and recursive to be more like CLI.
var git = Git();
print(git.log.prettyOpt(PF.full)); // 'git log --pretty=full'
git.log.exec(); // executes 'git log' and returns its output
- Inheritance
-
- Object
- BaseGitChain
- LogGitChain
Constructors
- LogGitChain(String chainName, BaseGitChain prevChain)
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
- prevChain → BaseGitChain?
-
Refers to the previous chain of the current chain that use in argList to generate
command sequence.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
atLeast(
int count) → LogGitChain - Generates -{count of last commit} option
-
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
-
prettyOpt(
dynamic format) → LogGitChain - Generates --pretty='format' or tformat:'format' option
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited