blob: d6f0689d5336e438e247610b64dea66f5ecca79c [file] [log] [blame]
キャロウ マークc966dbc2016-03-14 16:12:38 +09001#!/usr/bin/env bash
2
キャロウ マークc3b7fc62016-03-15 19:08:02 +09003# Add [include] of repo's .gitconfig in clone's .git/config.
4
5#
6# Copyright (c) 2016 The Khronos Group Inc.
7#
8# Permission is hereby granted, free of charge, to any person obtaining a
9# copy of this software and/or associated documentation files (the
10# "Materials"), to deal in the Materials without restriction, including
11# without limitation the rights to use, copy, modify, merge, publish,
12# distribute, sublicense, and/or sell copies of the Materials, and to
13# permit persons to whom the Materials are furnished to do so, subject to
14# the following conditions:
15#
16# The above copyright notice and this permission notice shall be included
17# in all copies or substantial portions of the Materials.
18#
19# THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
20# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
21# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
22# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
23# CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
24# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
25# MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
キャロウ マークc966dbc2016-03-14 16:12:38 +090026# Set colors
キャロウ マークc3b7fc62016-03-15 19:08:02 +090027
キャロウ マークc966dbc2016-03-14 16:12:38 +090028GREEN='\033[1;32m'
29NC='\033[0m'
30
キャロウ マークc966dbc2016-03-14 16:12:38 +090031git config --local include.path '../.gitconfig'
32printf "${GREEN}Git config was successfully set.${NC}\n"
33