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

Read and write submodule branch Option #1301 #1915

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TerRoshak
Copy link

Allows for reading and writing the branch option from .gitmodules
requested a while ago in #1301

submodule.Branch can be read (string) and set (string) to change the branch option in .gitmodules
If a branch option was not set Branch will return null (libgit2 submodule_branch return value)

This helps in automated environments to checkout the correct tip (e.g. specific feature branch) and automatically publish changes back to the correct branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant