Creates a GitFlow instance.
Parameters: | working_dir – The directory where the Git repo is located. If not specified, the current working directory is used. |
---|
When a GitFlow class is instantiated, it auto-discovers all subclasses of gitflow.branches.BranchManager, so there is no explicit registration required.
Checkout a branch of the given type, with the given short name.
Parameters: |
|
---|---|
Returns: | The checked out git.refs.Head branch. |
Creates a branch of the given type, with the given short name.
Parameters: |
|
---|---|
Returns: | The newly created git.refs.Head branch. |
Print the diff of changes since this branch branched off.
Parameters: |
|
---|
Finishes a branch of the given type, with the given short name.
Parameters: |
|
---|
Returns whether or not the current repo contains local changes checked into the index but not committed.
Returns whether or not the current working directory contains uncommitted changes.
Checks whether commit is successfully merged into branch target_branch.
Parameters: |
|
---|
List the all branches of the given type. If there are not branches of this type, raises Usage with an explanation on how to start a branch of this type.
Parameters: |
|
---|
Parameters: |
|
---|
Otherwise return the name unchanged.
Parameters: |
|
---|
If exactly one branch of type identifier starts with the given name prefix, returns that branches short name. Raises NoSuchBranchError in case no branch exists with the given prefix, or PrefixNotUniqueError in case multiple matches are found.
Publish a branch of the given type, with the given short name, to origin (or whatever is configured as remote for gitflow.)
Parameters: |
|
---|
Pull a branch of the given type, with the given short name, from the given remote peer.
Parameters: |
|
---|
Rebase a branch of the given type, with the given short name, on top of it’s default base.
Parameters: |
|
---|
Raises MergeConflict if the current working directory contains a merge conflict.
Track a branch of the given type, with the given short name, from origin (or whatever is configured as remote for gitflow.)
Parameters: |
|
---|---|
Returns: | The newly created git.refs.Head branch. |