Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configuration support through git-config #46

Open
petrzpav opened this issue Apr 4, 2017 · 5 comments
Open

Add configuration support through git-config #46

petrzpav opened this issue Apr 4, 2017 · 5 comments

Comments

@petrzpav
Copy link
Member

petrzpav commented Apr 4, 2017

The following features can be configurable:

  • branches naming (e.g. use master or develop instead of dev; stable instead of master)
  • custom pull request URLs support, including GitLab Add support for GitLab merge request URLs #40
  • custom prefixes for feature and hotfix branches, e.g. feature/ instead of feature-
  • set default behaviour for parameters, e.g. --request
  • set default environment variables
  • set task to be run on particular events Hooks support #52

This allows a common shared configuration to be commited into .gitconfig in the project and also set user's default preferences in ~/.gitconfig

@petrzpav
Copy link
Member Author

petrzpav commented Apr 4, 2017

Do the existing git-flow tools have some configuration?

@jnv jnv modified the milestone: Next minor Apr 4, 2017
@petrzpav
Copy link
Member Author

petrzpav commented Apr 5, 2017

Configuration proposal (file .gitconfig):

# Enable this configuration:
# git config --local include.path ../.gitconfig

[flow]
  defaultparams="--verbose"
  changelogheader=""
  prurl="??"

[flow "files"]
  changelog="CHANGELOG.md"
  version="VERSION"

[flow "branches"]
  develop="dev"
  stable="master"
  origin="origin"
  upstream="origin"

[flow "prefixes"]
  feature="feature-"
  hotfix="hotfix-"
  version="v"

[flow "hooks"]
  hook1="myfunction"

@jnv
Copy link
Contributor

jnv commented Apr 5, 2017

Actually, gitflow has a configuration system and they use git-config: https://github.com/petervanderdoes/gitflow-avh/wiki/Reference:-Configuration

Is it of any use to us?

@jnv
Copy link
Contributor

jnv commented Apr 5, 2017

Okay, so the gitflow has this:

git config gitflow.branch.develop my-dev-branch-name

Which is quite similar to the flow.branches you propose. Perhaps we could support these as fallback and otherwise use omgf namespace?

@petrzpav
Copy link
Member Author

petrzpav commented Apr 5, 2017

It is good idea. So we will primarily support omgf prefix and secondarily gitflow prefix (only rules that make sense).

Hooks will follow git standard and will not be placed in configuration file #52

@jnv jnv removed this from the Next minor milestone Apr 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants