diff options
author | Hal Canary <halcanary@google.com> | 2017-01-30 13:18:43 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-01-30 19:49:20 +0000 |
commit | 96abfc37cc476564e3b6bd669f2572570c30da0f (patch) | |
tree | 29c2afb2ea6f723b7871da768e35eab9967946e3 /experimental/tools | |
parent | f200a90f3e58ce20753420cadced850d7d00dca1 (diff) |
experimental/documentation/gerrit.md: more detail
NOTRY=true
Change-Id: I386013af35ae2a8b51fa78109ebd89a826334839
Reviewed-on: https://skia-review.googlesource.com/7754
Commit-Queue: Hal Canary <halcanary@google.com>
Reviewed-by: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'experimental/tools')
-rw-r--r-- | experimental/tools/setup-gerrit | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/experimental/tools/setup-gerrit b/experimental/tools/setup-gerrit deleted file mode 100644 index be372b6975..0000000000 --- a/experimental/tools/setup-gerrit +++ /dev/null @@ -1,44 +0,0 @@ -#! /bin/sh - -# Copyright 2017 Google Inc. -# -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -set -x -set -e - -cd "$(dirname "$0")/../.." - - -### Configure the Change-Id commit-msg Git hook - -commit_message_path="$(git rev-parse --git-dir)/hooks/commit-msg" - -curl -Lo "$commit_message_path" \ - 'https://gerrit-review.googlesource.com/tools/hooks/commit-msg' - -chmod +x "$commit_message_path" - -### Verify that origin points at the canonical origin, not github - -git remote set-url origin 'https://skia.googlesource.com/skia.git' - -### Skia uses a linear history, so rebase-on-pull is a good idea - -git config branch.autoSetupRebase 'always' - -### this alias does the heavy lifting of talking to gerrit - -git config alias.gerrit-push-master \ - '!f() { git push origin @:refs/for/master%m=$(echo "$*"|sed "s/[^a-zA-Z0-9]/_/g");};f' - -### this alias ensures that your branch has ony one commit on it - -git config alias.squash-commits \ - '!MSG="$(git log --format=%B ^@{u} @)";git reset --soft $(git merge-base @ @{u});git commit -m "$MSG" -e' - -### Amend the HEAD head commit without changing the commit message - -git config alias.amend-head 'commit --all --amend --reuse-message=@' - |