|
|
|
@ -383,7 +383,7 @@ Returns:
|
|
|
|
|
https://gerrit-review.googlesource.com/Documentation/rest-api-changes.html#list-changes
|
|
|
|
|
### *recipe_modules* / [git](/recipes/recipe_modules/git)
|
|
|
|
|
|
|
|
|
|
[DEPS](/recipes/recipe_modules/git/__init__.py#1): [infra\_paths](#recipe_modules-infra_paths), [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/platform][recipe_engine/recipe_modules/platform], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/python][recipe_engine/recipe_modules/python], [recipe\_engine/raw\_io][recipe_engine/recipe_modules/raw_io], [recipe\_engine/runtime][recipe_engine/recipe_modules/runtime], [recipe\_engine/step][recipe_engine/recipe_modules/step]
|
|
|
|
|
[DEPS](/recipes/recipe_modules/git/__init__.py#1): [infra\_paths](#recipe_modules-infra_paths), [recipe\_engine/buildbucket][recipe_engine/recipe_modules/buildbucket], [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/platform][recipe_engine/recipe_modules/platform], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/python][recipe_engine/recipe_modules/python], [recipe\_engine/raw\_io][recipe_engine/recipe_modules/raw_io], [recipe\_engine/runtime][recipe_engine/recipe_modules/runtime], [recipe\_engine/step][recipe_engine/recipe_modules/step]
|
|
|
|
|
|
|
|
|
|
#### **class [GitApi](/recipes/recipe_modules/git/api.py#10)([RecipeApi][recipe_engine/wkt/RecipeApi]):**
|
|
|
|
|
|
|
|
|
@ -391,7 +391,7 @@ Returns:
|
|
|
|
|
|
|
|
|
|
Return a git command step.
|
|
|
|
|
|
|
|
|
|
— **def [bundle\_create](/recipes/recipe_modules/git/api.py#383)(self, bundle_path, rev_list_args=None, \*\*kwargs):**
|
|
|
|
|
— **def [bundle\_create](/recipes/recipe_modules/git/api.py#382)(self, bundle_path, rev_list_args=None, \*\*kwargs):**
|
|
|
|
|
|
|
|
|
|
Run 'git bundle create' on a Git repository.
|
|
|
|
|
|
|
|
|
@ -444,7 +444,7 @@ Args:
|
|
|
|
|
Returns: If the checkout was successful, this returns the commit hash of
|
|
|
|
|
the checked-out-repo. Otherwise this returns None.
|
|
|
|
|
|
|
|
|
|
— **def [config\_get](/recipes/recipe_modules/git/api.py#356)(self, prop_name, \*\*kwargs):**
|
|
|
|
|
— **def [config\_get](/recipes/recipe_modules/git/api.py#355)(self, prop_name, \*\*kwargs):**
|
|
|
|
|
|
|
|
|
|
Returns: (str) The Git config output, or None if no output was generated.
|
|
|
|
|
|
|
|
|
@ -469,7 +469,7 @@ Returns:
|
|
|
|
|
|
|
|
|
|
Fetches all tags from the remote.
|
|
|
|
|
|
|
|
|
|
— **def [get\_remote\_url](/recipes/recipe_modules/git/api.py#373)(self, remote_name=None, \*\*kwargs):**
|
|
|
|
|
— **def [get\_remote\_url](/recipes/recipe_modules/git/api.py#372)(self, remote_name=None, \*\*kwargs):**
|
|
|
|
|
|
|
|
|
|
Returns: (str) The URL of the remote Git repository, or None.
|
|
|
|
|
|
|
|
|
@ -477,11 +477,11 @@ Args:
|
|
|
|
|
remote_name: (str) The name of the remote to query, defaults to 'origin'.
|
|
|
|
|
kwargs: Forwarded to '__call__'.
|
|
|
|
|
|
|
|
|
|
— **def [get\_timestamp](/recipes/recipe_modules/git/api.py#328)(self, commit='HEAD', test_data=None, \*\*kwargs):**
|
|
|
|
|
— **def [get\_timestamp](/recipes/recipe_modules/git/api.py#327)(self, commit='HEAD', test_data=None, \*\*kwargs):**
|
|
|
|
|
|
|
|
|
|
Find and return the timestamp of the given commit.
|
|
|
|
|
|
|
|
|
|
— **def [new\_branch](/recipes/recipe_modules/git/api.py#396)(self, branch, name=None, upstream=None, \*\*kwargs):**
|
|
|
|
|
— **def [new\_branch](/recipes/recipe_modules/git/api.py#395)(self, branch, name=None, upstream=None, \*\*kwargs):**
|
|
|
|
|
|
|
|
|
|
Runs git new-branch on a Git repository, to be used before git cl upload.
|
|
|
|
|
|
|
|
|
@ -491,7 +491,7 @@ Args:
|
|
|
|
|
upstream (str): to origin/master.
|
|
|
|
|
kwargs: Forwarded to '__call__'.
|
|
|
|
|
|
|
|
|
|
— **def [rebase](/recipes/recipe_modules/git/api.py#337)(self, name_prefix, branch, dir_path, remote_name=None, \*\*kwargs):**
|
|
|
|
|
— **def [rebase](/recipes/recipe_modules/git/api.py#336)(self, name_prefix, branch, dir_path, remote_name=None, \*\*kwargs):**
|
|
|
|
|
|
|
|
|
|
Run rebase HEAD onto branch
|
|
|
|
|
Args:
|
|
|
|
@ -924,9 +924,9 @@ Raises:
|
|
|
|
|
— **def [RunSteps](/recipes/recipe_modules/gerrit/examples/full.py#11)(api):**
|
|
|
|
|
### *recipes* / [git:examples/full](/recipes/recipe_modules/git/examples/full.py)
|
|
|
|
|
|
|
|
|
|
[DEPS](/recipes/recipe_modules/git/examples/full.py#5): [git](#recipe_modules-git), [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/platform][recipe_engine/recipe_modules/platform], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/raw\_io][recipe_engine/recipe_modules/raw_io], [recipe\_engine/runtime][recipe_engine/recipe_modules/runtime], [recipe\_engine/step][recipe_engine/recipe_modules/step]
|
|
|
|
|
[DEPS](/recipes/recipe_modules/git/examples/full.py#5): [git](#recipe_modules-git), [recipe\_engine/buildbucket][recipe_engine/recipe_modules/buildbucket], [recipe\_engine/context][recipe_engine/recipe_modules/context], [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/platform][recipe_engine/recipe_modules/platform], [recipe\_engine/properties][recipe_engine/recipe_modules/properties], [recipe\_engine/raw\_io][recipe_engine/recipe_modules/raw_io], [recipe\_engine/runtime][recipe_engine/recipe_modules/runtime], [recipe\_engine/step][recipe_engine/recipe_modules/step]
|
|
|
|
|
|
|
|
|
|
— **def [RunSteps](/recipes/recipe_modules/git/examples/full.py#18)(api):**
|
|
|
|
|
— **def [RunSteps](/recipes/recipe_modules/git/examples/full.py#19)(api):**
|
|
|
|
|
### *recipes* / [git\_cl:examples/full](/recipes/recipe_modules/git_cl/examples/full.py)
|
|
|
|
|
|
|
|
|
|
[DEPS](/recipes/recipe_modules/git_cl/examples/full.py#9): [git\_cl](#recipe_modules-git_cl), [recipe\_engine/path][recipe_engine/recipe_modules/path], [recipe\_engine/raw\_io][recipe_engine/recipe_modules/raw_io], [recipe\_engine/step][recipe_engine/recipe_modules/step]
|
|
|
|
|