diff options
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. |