mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-27 01:02:42 +01:00
80d9a276f3
Summary: We can use `.gitattributes` instead but there's no way how to set repository config for all users in Git, right? So provide a script writting to `.git/info/attributes` instead so that we don't have to .gitignore `.gitattributes`. Test Plan: $ scripts/celerity/install_merge.sh $ git pull # with merge conflict in Celerity map Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3228
9 lines
266 B
Bash
Executable file
9 lines
266 B
Bash
Executable file
#!/bin/sh
|
|
|
|
echo "src/__celerity_resource_map__.php merge=celerity" \
|
|
>> `dirname "$0"`/../../.git/info/attributes
|
|
|
|
git config merge.celerity.name "Celerity Mapper"
|
|
|
|
git config merge.celerity.driver \
|
|
'$GIT_DIR/../scripts/celerity_mapper.php $GIT_DIR/../webroot'
|