Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(638)

Unified Diff: recipe_modules/git/example.py

Issue 2369073002: git recipe_module: git new-branch. (Closed)
Patch Set: Review. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « recipe_modules/git/api.py ('k') | recipe_modules/git/example.expected/basic.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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'],
« no previous file with comments | « recipe_modules/git/api.py ('k') | recipe_modules/git/example.expected/basic.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698