Commit 9aca104a authored by szager@chromium.org's avatar szager@chromium.org

git template files for chromium checkouts.

To be used in conjunction with the --template argument to git-clone.

The hooks all redirect to build/git-hooks, which are files under
revision control.  This allows us to version the hooks along with
the source code.

TBR=mmoss@chromium.org,cmp@chromium.org
Review URL: https://codereview.chromium.org/11689005

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@174738 0039d316-1c4b-4281-b951-d872f2087c98
parent 8db6c88c
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#!/bin/bash
[ -e "build/git-hooks/applypatch-msg" ] && exec bash "build/git-hooks/applypatch-msg" "$@"
exit 0
#!/bin/bash
[ -e "build/git-hooks/commit-msg" ] && exec bash "build/git-hooks/commit-msg" "$@"
exit 0
#!/bin/bash
[ -e "build/git-hooks/post-applypatch" ] && exec bash "build/git-hooks/post-applypatch" "$@"
exit 0
#!/bin/bash
[ -e "build/git-hooks/post-checkout" ] && exec bash "build/git-hooks/post-checkout" "$@"
exit 0
#!/bin/bash
[ -e "build/git-hooks/post-commit" ] && exec bash "build/git-hooks/post-commit" "$@"
exit 0
#!/bin/bash
[ -e "build/git-hooks/post-merge" ] && exec bash "build/git-hooks/post-merge" "$@"
exit 0
#!/bin/bash
[ -e "build/git-hooks/post-update" ] && exec bash "build/git-hooks/post-update" "$@"
exit 0
#!/bin/bash
[ -e "build/git-hooks/pre-applypatch" ] && exec bash "build/git-hooks/pre-applypatch" "$@"
exit 0
#!/bin/bash
[ -e "build/git-hooks/pre-auto-gc" ] && exec bash "build/git-hooks/pre-auto-gc" "$@"
exit 0
#!/bin/bash
[ -e "build/git-hooks/pre-commit" ] && exec bash "build/git-hooks/pre-commit" "$@"
exit 0
#!/bin/bash
[ -e "build/git-hooks/pre-rebase" ] && exec bash "build/git-hooks/pre-rebase" "$@"
exit 0
#!/bin/bash
[ -e "build/git-hooks/prepare-commit-msg" ] && exec bash "build/git-hooks/prepare-commit-msg" "$@"
exit 0
# git ls-files --others --exclude-from=.git/info/exclude
# Lines that start with '#' are comments.
# For a project mostly in C, the following would be a good set of
# exclude patterns (uncomment them if you want to use them):
# *.[oa]
# *~
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