Resolves "gitdist: Add Default Development Branch Support #236
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.
Here's an initial implementation that allows a user to pass
_DEFAULT_BRANCH_
to any command that would normally take a reference (branch, tag, SHA1). Users can set up their.gitdist
file as follows:The lines of the file are read and then split on spaces. The first entry is the path to the repo
gitdist
will be working with. If there is a second entry, that will be substituted any time_DEFAULT_BRANCH_
is used on the command line. If no second entry exists, themaster
branch is assumed.This allows for the following workflow:
There may be a better way to implement this, but this at least gets us started.
Closes #235