Git::Flux::Utils - Common utility functions for Gitflux
This provides a few command utilities that is shared between Gitflux commands.
Return list of all local git branches.
Return list of all remote git branches.
Return list of all git branches, both local and remote.
Return list of all git tags.
Return the current git branch.
Return a numbered code representing the cleanliness of the Git repository.
The repo is clean.
Unclean working directory. This means stuff is waiting to be added to the staging area / index.
Unclean index. This means stuff needs to be committed.
Returns a boolean on whether the Git repo is headless or not.
Returns a boolean on whether a certain local branch exists.
Returns a boolean on whether a Git branch exists.
Returns a boolean on whether a Git tag exists.
Compared two git branches and checks whether their origin coutnerparts have diverged and need merging first. Returns a numbered code:
Branch heads point to the same commit
First given branch needs fast-forwarding
Second given branch needs fast-forwarding
Branch needs a real merge
There is no merge base, i.e. the branches have no common ancestors
Checks whether branch 1 is succesfully merged into 2.
Return a boolean on whether the gitflux master is configured.
Returns a boolean on whether the gitflux devel is configured.
Returns a boolean on whether the gitflux prefixes are configured.
Returns a boolean on whether gitflux itself is configured.
Loads all the gitflux settings.
Asserts a certain directory is a git repository.
Asserts gitflux was already initialized.
Asserts the working tree is clean.
Asserts there's a local branch with a given name.
Asserts a certain branch exists.
Returns a boolean on whether a branch exists.
Asserts that a certain tag is absent.
Asserts that two branches are equal.
Returns boolean on whether we're in interactive mode.
Sawyer X, <xsawyerx at cpan.org>
<xsawyerx at cpan.org>
Philippe Bruhat (BooK), <book at cpan.org>
<book at cpan.org>
Please use the Github Issues tracker.
c<gitflow>
Copyright 2010 Sawyer X.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
6 POD Errors
The following errors were encountered while parsing the POD:
Expected text after =item, not a number
To install Git::Flux, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Git::Flux
CPAN shell
perl -MCPAN -e shell install Git::Flux
For more information on module installation, please visit the detailed CPAN module installation guide.