RwGit class


rw_git_base.dart

Offers a useful interface for executing various GIT commands and fetching a pretty GIT result.

Constructors

RwGit()

Properties

gitRepoIndicator String
final
hashCode int
The hash code for this object.
no setterinherited
invalidGitCommandResult String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkout(String localCheckoutDirectory, String branchToCheckout) Future<bool>
git checkout the specified branchToCheckout on the localCheckoutDirectory. Returns true if the operation has been completed successfully.
clone(String localDirectoryToCloneInto, String repository) Future<bool>
Clones a repository by git clone into the specified localDirectoryToCloneInto folder. If the localDirectoryToCloneInto does not exist, it will be created. Returns true if the command was successful, false if failed for any reason.
fetchTags(String localCheckoutDirectory) Future<List<String>>
Lists all the tags of a directory by executing the git tag -l command. Returns a List<String> that contains the retrieved tags. localCheckoutDirectory - the local GIT directory to retrieve the tags. In case of success, will return a list with a tag name on each position, whereas in case of failure will return an empty list.
getCommitsBetween(String localCheckoutDirectory, String firstTag, String secondTag) Future<List<String>>
Executes the git command
init(String directoryToInit) Future<bool>
Performs a git init in a local directory. If the supplied directory does not exist it will be created.
isGitRepository(String directoryToCheck) Future<bool>
Checks if the directoryToCheck is a git directory and returns true if it is, otherwise false. In order to determine if it is a git repository, it will check whether the repository belongs to a git tree.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
stats(String localCheckoutDirectory, String oldTag, dynamic newTag) Future<ShortStatDto>
git --shortstat oldTag newTag to fetch statistics related to insertions, deletions and number of changed files between two tags. In case of success will return a ShortStatDto object with the available data, whereas an object with the default values.
toString() String
A string representation of this object.
inherited

Operators

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