Twenga / twgit

Twgit is a free and open source assisting tools for managing features, hotfixes and releases on Git repositories. It provides simple, high-level commands to adopt the branching model describes in our documentation. Supported OS: Debian/Ubuntu Linux, Mac OS X 10.8 (Mountain Lion) or lower.
http://twgit.twenga.com/
Other
111 stars 34 forks source link

Choosing config depending the repository #88

Closed Sebastien-Hanicotte closed 11 years ago

Sebastien-Hanicotte commented 11 years ago

I actually work with 2 differents repository :

For the first one, we use Redmine as a Subject Connector and for the other I need to be using GITHUB in order to comment the [INIT] commit of all the features started with the correct Subject automaticaly.

It would be interesting to be able to overload all or part of the default config file depending the project you're working on.

Sebastien-Hanicotte commented 11 years ago

I'm planning to use a file .twgit user will have to put a the root directory of its project.

This .twgit will be a copy of the conf/twgit.sh with the header #!/bin/bash and all the config environment params he wants to alter

Example of .twgit file :

#!/bin/bash

##
# twgit secondary config file
#
TWGIT_FEATURE_SUBJECT_CONNECTOR='redmine'                       # in {'', 'github', 'redmine'}
TWGIT_FEATURE_SUBJECT_CONNECTOR_PATH="$TWGIT_INC_DIR/connectors/feature_subject_%s.sh"  # où %s est un $TWGIT_FEATURE_SUBJECT_CONNECTOR
chemidy commented 11 years ago

I work in the same context, so Good news !!!