ff 1.*

Install
go get github.com/sensorario/ff
cd $GOPATH/src/github.com/sensorario/ff/
env GO111MODULE=on go build -o /usr/local/bin/ff
Configuration
- change name of development branch
- disable auto-tag whenever a support branch is merged
- disable undo command
- ask if user want to tag
- stop asking for auto-tag
- enable/disable git command output log
{
"features": {
"tagAfterMerge": true,
"disableUndoCommand": false,
"stopAskingForTags": false,
"applyFirstTag": false,
"enableGitCommandLog": true
},
"branches": {
"historical": {
"development": "master"
}
}
}
Features
The ff does not allow command if not allowed according to the git flow. For example, no hotfix/feature branches can be created if current branch is an hotfix/feature branch in turn.
An hotfix/feature branch can be created only from master.
In case of LTS (a minor version) after each new tag merge updates into master to keep development version updated with all hotfixes.
Logs are stored in .git/logger.log file
Tag directly from master.
Create git repository if not exists.
Undo last commit.
Any git command's output is logged in .git/logger.log. Logs may be disabled or not using configuration.
Commands
- authors
- bugfix
- commit
- complete
- conf
- feature
- help
- hotfix
- patch
- publish
- pull
- refactor
- reset
- status
- tag
- undo
Autocompletion
Append the following lines in your .bash_profile file:
_ff='patch pull conf authors undo tag commit complete feature help hotfix bugfix publish refactor reset status' && complete -W "${_ff}" 'ff'