diff options
author | Hal Canary <halcanary@google.com> | 2017-12-18 12:01:18 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-12-18 17:21:42 +0000 |
commit | d2ded55168d86e95710ea6b923829745b005e531 (patch) | |
tree | 00f04445847cb652d7e6a3946a727364a91deab3 /experimental/documentation | |
parent | a2192a76b55e465a8a97badd473a24d7daeac7a2 (diff) |
experimental/tools/gerrit-change-id-to-number
Change-Id: I10a46d2d9c8a710f6816f697e48366366078e4f0
Reviewed-on: https://skia-review.googlesource.com/86640
Reviewed-by: Hal Canary <halcanary@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
Diffstat (limited to 'experimental/documentation')
-rw-r--r-- | experimental/documentation/gerrit.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/experimental/documentation/gerrit.md b/experimental/documentation/gerrit.md index 1f41391311..24cf0b6b7e 100644 --- a/experimental/documentation/gerrit.md +++ b/experimental/documentation/gerrit.md @@ -94,6 +94,16 @@ Updating a Change The title of this patch set will be "this is the patch set comment message". +Using `git cl try` +------------------ + +On your current branch, after uploading to gerrit: + + git cl issue $(experimental/tools/gerrit-change-id-to-number @) + +Now `git cl try` and `bin/try` will work correctly. + + Scripting --------- @@ -105,6 +115,10 @@ The following alias amends the head without editing the commit message: git config alias.amend-head 'commit --all --amend --reuse-message=@' +Set the CL issue numnber: + + git config alias.setcl '!git-cl issue $(experimental/tools/gerrit-change-id-to-number @)' + The following shell script will squash all commits on the current branch, assuming that the branch has an upstream topic branch. |