Skip to content

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