Last active
December 30, 2015 09:49
-
-
Save cooncesean/7811865 to your computer and use it in GitHub Desktop.
Sample config file to handle dependency switching between multiple branches.
This file contains 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
# Each key maps to a branch in `gears` that depends on branched code in other repos. | |
# | |
# When developing a new `gears` feature (typically done in a feature branch) that depends on | |
# branched code outside of gears, this file would modified to specify the configuration for | |
# that branch. | |
# | |
# Our tool referenced this file when staging code or when configuring a developer's environment. | |
# Staging Code: | |
# > fab stage gears:master # would stage master and the appropriate branches of its dependent repos | |
# > fab stage gears:feature_branch_1 # would stage gears `feature_branch_1` and the appropriate branches of its dependent repos | |
# | |
# Other Developers: When developer #2 needs to hop in to work on a feature, they would run something like: | |
# > fab switch gears:feature_branch_1 # would git pull all of the specified repos then git checkout each of the specific branches specified in the config | |
{ | |
'master': { | |
'corpsite': 'master', | |
'unity': 'master' | |
}, | |
'feature_branch_1': { | |
# if a repo isn't specified, `master` is assummed | |
'unity': 'feature_branch_1' | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment