feat(init): Add --shared flag for shareable git-flow config#109
Open
Xstoudi wants to merge 1 commit intogittower:mainfrom
Open
feat(init): Add --shared flag for shareable git-flow config#109Xstoudi wants to merge 1 commit intogittower:mainfrom
Xstoudi wants to merge 1 commit intogittower:mainfrom
Conversation
Writes configuration to .gitflow in the repository root instead of .git/config, allowing teams to commit and share it via version control. Automatically wires include.path in the local config after writing, and auto-detects .gitflow on any git-flow command for teammates who clone the repo without running git flow init. Closes gittower#68 Signed-off-by: Xavier Stouder <xavier@stouder.io>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds --shared flag to git flow init to write configuration to a committable .gitflow file in the repository root, enabling teams to share git-flow settings via version control.
After writing, the command automatically wires include.path = ../.gitflow into the local .git/config so the configuration is active immediately. For teammates who clone the repo, any git-flow command auto-detects .gitflow and adds the include on first run — no manual git flow init required. Changes touch cmd/init.go, cmd/root.go, internal/config/config.go, internal/git/config.go, and internal/git/repo.go.
Closes #68