From d2ded55168d86e95710ea6b923829745b005e531 Mon Sep 17 00:00:00 2001 From: Hal Canary Date: Mon, 18 Dec 2017 12:01:18 -0500 Subject: experimental/tools/gerrit-change-id-to-number Change-Id: I10a46d2d9c8a710f6816f697e48366366078e4f0 Reviewed-on: https://skia-review.googlesource.com/86640 Reviewed-by: Hal Canary Commit-Queue: Hal Canary --- experimental/documentation/gerrit.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'experimental/documentation') 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. -- cgit v1.2.3