Programmatically determine if git-flow is initialized

1,188 views
Skip to first unread message

istr...@gmail.com

unread,
Feb 11, 2015, 3:52:02 PM2/11/15
to gitflo...@googlegroups.com
Is there any way to do this?  Is the repo considered initialized if it simply has the git-flow directives in .git/config like

    ....
    [gitflow "branch"]
        master = master
        develop = develop
    [gitflow "prefix"]
        feature = feature/
        release = release/
        hotfix = hotfix/
        support = support/
        versiontag = v


?

Peter van der Does

unread,
Feb 12, 2015, 12:48:51 PM2/12/15
to gitflo...@googlegroups.com, istr...@gmail.com

git-flow AVH Edition checks the following to determine if git-flow is initialized:
1. Check config for gitflow.branch.master and if the branch does exists in the repo
2. Check config for gitflow.branch.develop and if the branch does exists in the repo
3. Master branch can not be the same as develop branch.
4. Make sure all the prefixes are configured.

--
Peter van der Does
Maintainer of git-flow (AVH Edition)

git-flow (AVH Edition) is located on github:
  Repository: http://goo.gl/9hGZ3
  Wiki: http://goo.gl/zYtHJ
  Changelog: http://goo.gl/jpVJE

istr...@gmail.com

unread,
Feb 12, 2015, 1:11:46 PM2/12/15
to gitflo...@googlegroups.com
Thank you sir!
  Repository: github.com/peter...
  Wiki: github.com/peter...
  Changelog: github.com/peter...
Reply all
Reply to author
Forward
0 new messages