Commit 3113c8b1 authored by szager@chromium.org's avatar szager@chromium.org

Set default configs for ignoring submodule diffs.

TBR=mmoss@chromium.org

BUG=


Review URL: https://chromiumcodereview.appspot.com/12330179

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@185008 0039d316-1c4b-4281-b951-d872f2087c98
parent 411034a2
......@@ -65,6 +65,10 @@ process_submodule () {
fi
git config "submodule.$1.update" $update_policy
fi
ignore_policy=$(git config --get "submodule.$1.ignore")
if [ -z "$ignore_policy" ]; then
git config "submodule.$1.ignore" all
fi
if [ "$update_policy" != "none" ]; then
update_submodule_url "$1"
echo "$solution/$1"
......@@ -86,6 +90,13 @@ if [ "$solution" = "$1" ]; then
exit 0
fi
# Set default behavior to ignore diffs in submodule checkouts
diff_policy=$(git config --get "diff.ignoreSubmodules")
if [ -z "$diff_policy" ]; then
git config diff.ignoreSubmodules all
fi
# Don't "pull" if checkout is not on a named branch
shift
if test $# -ne 0; then
update_toplevel "$@"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment