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

Idea: specify, in EditorConfig files, which git strategy is used by a project #495

Open
Atrejoe opened this issue Dec 21, 2023 · 3 comments

Comments

@Atrejoe
Copy link

Atrejoe commented Dec 21, 2023

I see many teams having issues formalizing their git strategies (gitflow, trunk-based, no-clue), and even when a strategy would be chosen, the names of the branches need to be manually specified.

It would be cool if strategy could be forma,ized, and branching config could be formalized, allowing git integrations assist branch actions.

Similar to specifying using gitflow config

Which branch should be used for bringing forth production releases?
   - develop
   - main
Branch name for production releases: [master] main

Which branch should be used for integration of the "next release"?
   - develop
   - main
Branch name for "next release" development: [develop] develop

How to name your supporting branch prefixes?
Feature branches? [feature/] 
Bugfix branches? [bugfix/] 
Release branches? [release/] 
Hotfix branches? [hotfix/] 
Support branches? [support/] 
Version tag prefix? [] 

or asissted by a gui, like:
image

Any ideas on this?

@cxw42
Copy link
Member

cxw42 commented Dec 24, 2023

Could you tell us more about the problem this would solve? This particular repo doesn't change often enough to need a strategy, in my opinion.

Individual editorconfig cores and plugins have their own teams and repos, and I personally wouldn't want to try to dictate workflow to those teams :) .

@Atrejoe
Copy link
Author

Atrejoe commented Dec 24, 2023

It's not about formalizing a strategy for this repo, it's about allowing teams to formalize their git strategy in their repo's by specifying it in a .editorconfig file.

For instance, when integrated, git flow could pick up the settings from the .editorconfig file upon checkout, no need for each user to initialize and manually configure branches and prefixes.

@cxw42
Copy link
Member

cxw42 commented Jan 15, 2024

Thanks for the clarification! It makes sense to me that you would want helper tooling to set up git flow for a project. However, I don't think EditorConfig is a good fit for that tooling. As the web site says,

EditorConfig helps maintain consistent coding styles for multiple developers working on the same project across various editors and IDEs.

Git flow, branch naming, and the like are all orthogonal to coding style, so I think would be better served by a dedicated tool.

(I have proposed a "toolconfig" format that would be broader and that might be able to hold such settings. Even there, however, the git flow is not tied to a specific file. Toolconfig would have to be extended to hold edit whole-project settings.)

@cxw42 cxw42 changed the title Idea: formalize git strategy in repo Idea: specify, in EditorConfig files, which git strategy is used by a project Jan 15, 2024
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

2 participants