| Index: recipe_modules/git/example.py
|
| diff --git a/recipe_modules/git/example.py b/recipe_modules/git/example.py
|
| index 484b7385b996c351240d68eab193e2dfce292e68..8eeec89dd9d808f0547c3d5aa10580b20d96af2e 100644
|
| --- a/recipe_modules/git/example.py
|
| +++ b/recipe_modules/git/example.py
|
| @@ -67,6 +67,11 @@ def RunSteps(api):
|
| api.git('status', name='git status cannot_fail_build',
|
| can_fail_build=False)
|
|
|
| + # You should run git new-branch before you upload something with git cl.
|
| + api.git.new_branch('refactor') # Upstream is origin/master by default.
|
| + # And use upstream kwarg to set up different upstream for tracking.
|
| + api.git.new_branch('feature', upstream='refactor')
|
| +
|
| # You can use api.git.rebase to rebase the current branch onto another one
|
| api.git.rebase(name_prefix='my repo', branch='origin/master',
|
| dir_path=api.path['checkout'],
|
|
|