|
|
@ -402,7 +402,7 @@ Returns:
|
|
|
|
|
|
|
|
|
|
|
|
Return a git command step.
|
|
|
|
Return a git command step.
|
|
|
|
|
|
|
|
|
|
|
|
— **def [bundle\_create](/recipes/recipe_modules/git/api.py#381)(self, bundle_path, rev_list_args=None, \*\*kwargs):**
|
|
|
|
— **def [bundle\_create](/recipes/recipe_modules/git/api.py#383)(self, bundle_path, rev_list_args=None, \*\*kwargs):**
|
|
|
|
|
|
|
|
|
|
|
|
Run 'git bundle create' on a Git repository.
|
|
|
|
Run 'git bundle create' on a Git repository.
|
|
|
|
|
|
|
|
|
|
|
@ -412,11 +412,11 @@ Args:
|
|
|
|
refs in the Git checkout will be bundled.
|
|
|
|
refs in the Git checkout will be bundled.
|
|
|
|
kwargs: Forwarded to '__call__'.
|
|
|
|
kwargs: Forwarded to '__call__'.
|
|
|
|
|
|
|
|
|
|
|
|
— **def [cat\_file\_at\_commit](/recipes/recipe_modules/git/api.py#43)(self, file_path, commit_hash, remote_name=None, \*\*kwargs):**
|
|
|
|
— **def [cat\_file\_at\_commit](/recipes/recipe_modules/git/api.py#45)(self, file_path, commit_hash, remote_name=None, \*\*kwargs):**
|
|
|
|
|
|
|
|
|
|
|
|
Outputs the contents of a file at a given revision.
|
|
|
|
Outputs the contents of a file at a given revision.
|
|
|
|
|
|
|
|
|
|
|
|
— **def [checkout](/recipes/recipe_modules/git/api.py#115)(self, url, ref=None, dir_path=None, recursive=False, submodules=True, submodule_update_force=False, keep_paths=None, step_suffix=None, curl_trace_file=None, can_fail_build=True, set_got_revision=False, remote_name=None, display_fetch_size=None, file_name=None, submodule_update_recursive=True, use_git_cache=False, progress=True, tags=False):**
|
|
|
|
— **def [checkout](/recipes/recipe_modules/git/api.py#117)(self, url, ref=None, dir_path=None, recursive=False, submodules=True, submodule_update_force=False, keep_paths=None, step_suffix=None, curl_trace_file=None, can_fail_build=True, set_got_revision=False, remote_name=None, display_fetch_size=None, file_name=None, submodule_update_recursive=True, use_git_cache=False, progress=True, tags=False):**
|
|
|
|
|
|
|
|
|
|
|
|
Performs a full git checkout and returns sha1 of checked out revision.
|
|
|
|
Performs a full git checkout and returns sha1 of checked out revision.
|
|
|
|
|
|
|
|
|
|
|
@ -455,7 +455,7 @@ Args:
|
|
|
|
Returns: If the checkout was successful, this returns the commit hash of
|
|
|
|
Returns: If the checkout was successful, this returns the commit hash of
|
|
|
|
the checked-out-repo. Otherwise this returns None.
|
|
|
|
the checked-out-repo. Otherwise this returns None.
|
|
|
|
|
|
|
|
|
|
|
|
— **def [config\_get](/recipes/recipe_modules/git/api.py#354)(self, prop_name, \*\*kwargs):**
|
|
|
|
— **def [config\_get](/recipes/recipe_modules/git/api.py#356)(self, prop_name, \*\*kwargs):**
|
|
|
|
|
|
|
|
|
|
|
|
Returns: (str) The Git config output, or None if no output was generated.
|
|
|
|
Returns: (str) The Git config output, or None if no output was generated.
|
|
|
|
|
|
|
|
|
|
|
@ -463,7 +463,7 @@ Args:
|
|
|
|
prop_name: (str) The name of the config property to query.
|
|
|
|
prop_name: (str) The name of the config property to query.
|
|
|
|
kwargs: Forwarded to '__call__'.
|
|
|
|
kwargs: Forwarded to '__call__'.
|
|
|
|
|
|
|
|
|
|
|
|
— **def [count\_objects](/recipes/recipe_modules/git/api.py#51)(self, previous_result=None, can_fail_build=False, \*\*kwargs):**
|
|
|
|
— **def [count\_objects](/recipes/recipe_modules/git/api.py#53)(self, previous_result=None, can_fail_build=False, \*\*kwargs):**
|
|
|
|
|
|
|
|
|
|
|
|
Returns `git count-objects` result as a dict.
|
|
|
|
Returns `git count-objects` result as a dict.
|
|
|
|
|
|
|
|
|
|
|
@ -476,11 +476,11 @@ Args:
|
|
|
|
Returns:
|
|
|
|
Returns:
|
|
|
|
A dict of count-object values, or None if count-object run failed.
|
|
|
|
A dict of count-object values, or None if count-object run failed.
|
|
|
|
|
|
|
|
|
|
|
|
— **def [fetch\_tags](/recipes/recipe_modules/git/api.py#37)(self, remote_name=None, \*\*kwargs):**
|
|
|
|
— **def [fetch\_tags](/recipes/recipe_modules/git/api.py#39)(self, remote_name=None, \*\*kwargs):**
|
|
|
|
|
|
|
|
|
|
|
|
Fetches all tags from the remote.
|
|
|
|
Fetches all tags from the remote.
|
|
|
|
|
|
|
|
|
|
|
|
— **def [get\_remote\_url](/recipes/recipe_modules/git/api.py#371)(self, remote_name=None, \*\*kwargs):**
|
|
|
|
— **def [get\_remote\_url](/recipes/recipe_modules/git/api.py#373)(self, remote_name=None, \*\*kwargs):**
|
|
|
|
|
|
|
|
|
|
|
|
Returns: (str) The URL of the remote Git repository, or None.
|
|
|
|
Returns: (str) The URL of the remote Git repository, or None.
|
|
|
|
|
|
|
|
|
|
|
@ -488,11 +488,11 @@ Args:
|
|
|
|
remote_name: (str) The name of the remote to query, defaults to 'origin'.
|
|
|
|
remote_name: (str) The name of the remote to query, defaults to 'origin'.
|
|
|
|
kwargs: Forwarded to '__call__'.
|
|
|
|
kwargs: Forwarded to '__call__'.
|
|
|
|
|
|
|
|
|
|
|
|
— **def [get\_timestamp](/recipes/recipe_modules/git/api.py#326)(self, commit='HEAD', test_data=None, \*\*kwargs):**
|
|
|
|
— **def [get\_timestamp](/recipes/recipe_modules/git/api.py#328)(self, commit='HEAD', test_data=None, \*\*kwargs):**
|
|
|
|
|
|
|
|
|
|
|
|
Find and return the timestamp of the given commit.
|
|
|
|
Find and return the timestamp of the given commit.
|
|
|
|
|
|
|
|
|
|
|
|
— **def [new\_branch](/recipes/recipe_modules/git/api.py#394)(self, branch, name=None, upstream=None, \*\*kwargs):**
|
|
|
|
— **def [new\_branch](/recipes/recipe_modules/git/api.py#396)(self, branch, name=None, upstream=None, \*\*kwargs):**
|
|
|
|
|
|
|
|
|
|
|
|
Runs git new-branch on a Git repository, to be used before git cl upload.
|
|
|
|
Runs git new-branch on a Git repository, to be used before git cl upload.
|
|
|
|
|
|
|
|
|
|
|
@ -502,7 +502,7 @@ Args:
|
|
|
|
upstream (str): to origin/master.
|
|
|
|
upstream (str): to origin/master.
|
|
|
|
kwargs: Forwarded to '__call__'.
|
|
|
|
kwargs: Forwarded to '__call__'.
|
|
|
|
|
|
|
|
|
|
|
|
— **def [rebase](/recipes/recipe_modules/git/api.py#335)(self, name_prefix, branch, dir_path, remote_name=None, \*\*kwargs):**
|
|
|
|
— **def [rebase](/recipes/recipe_modules/git/api.py#337)(self, name_prefix, branch, dir_path, remote_name=None, \*\*kwargs):**
|
|
|
|
|
|
|
|
|
|
|
|
Run rebase HEAD onto branch
|
|
|
|
Run rebase HEAD onto branch
|
|
|
|
Args:
|
|
|
|
Args:
|
|
|
@ -979,18 +979,18 @@ Move things around in a loop!
|
|
|
|
|
|
|
|
|
|
|
|
— **def [RunSteps](/recipes/recipe_modules/windows_sdk/examples/full.py#13)(api):**
|
|
|
|
— **def [RunSteps](/recipes/recipe_modules/windows_sdk/examples/full.py#13)(api):**
|
|
|
|
|
|
|
|
|
|
|
|
[recipe_engine/recipe_modules/buildbucket]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/f46a599f105746e2f0ce7068c630e312f2113893/README.recipes.md#recipe_modules-buildbucket
|
|
|
|
[recipe_engine/recipe_modules/buildbucket]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/04620158d8f45c68cc8bc39e30ce4a85c368046a/README.recipes.md#recipe_modules-buildbucket
|
|
|
|
[recipe_engine/recipe_modules/cipd]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/f46a599f105746e2f0ce7068c630e312f2113893/README.recipes.md#recipe_modules-cipd
|
|
|
|
[recipe_engine/recipe_modules/cipd]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/04620158d8f45c68cc8bc39e30ce4a85c368046a/README.recipes.md#recipe_modules-cipd
|
|
|
|
[recipe_engine/recipe_modules/context]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/f46a599f105746e2f0ce7068c630e312f2113893/README.recipes.md#recipe_modules-context
|
|
|
|
[recipe_engine/recipe_modules/context]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/04620158d8f45c68cc8bc39e30ce4a85c368046a/README.recipes.md#recipe_modules-context
|
|
|
|
[recipe_engine/recipe_modules/file]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/f46a599f105746e2f0ce7068c630e312f2113893/README.recipes.md#recipe_modules-file
|
|
|
|
[recipe_engine/recipe_modules/file]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/04620158d8f45c68cc8bc39e30ce4a85c368046a/README.recipes.md#recipe_modules-file
|
|
|
|
[recipe_engine/recipe_modules/json]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/f46a599f105746e2f0ce7068c630e312f2113893/README.recipes.md#recipe_modules-json
|
|
|
|
[recipe_engine/recipe_modules/json]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/04620158d8f45c68cc8bc39e30ce4a85c368046a/README.recipes.md#recipe_modules-json
|
|
|
|
[recipe_engine/recipe_modules/path]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/f46a599f105746e2f0ce7068c630e312f2113893/README.recipes.md#recipe_modules-path
|
|
|
|
[recipe_engine/recipe_modules/path]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/04620158d8f45c68cc8bc39e30ce4a85c368046a/README.recipes.md#recipe_modules-path
|
|
|
|
[recipe_engine/recipe_modules/platform]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/f46a599f105746e2f0ce7068c630e312f2113893/README.recipes.md#recipe_modules-platform
|
|
|
|
[recipe_engine/recipe_modules/platform]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/04620158d8f45c68cc8bc39e30ce4a85c368046a/README.recipes.md#recipe_modules-platform
|
|
|
|
[recipe_engine/recipe_modules/properties]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/f46a599f105746e2f0ce7068c630e312f2113893/README.recipes.md#recipe_modules-properties
|
|
|
|
[recipe_engine/recipe_modules/properties]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/04620158d8f45c68cc8bc39e30ce4a85c368046a/README.recipes.md#recipe_modules-properties
|
|
|
|
[recipe_engine/recipe_modules/python]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/f46a599f105746e2f0ce7068c630e312f2113893/README.recipes.md#recipe_modules-python
|
|
|
|
[recipe_engine/recipe_modules/python]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/04620158d8f45c68cc8bc39e30ce4a85c368046a/README.recipes.md#recipe_modules-python
|
|
|
|
[recipe_engine/recipe_modules/raw_io]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/f46a599f105746e2f0ce7068c630e312f2113893/README.recipes.md#recipe_modules-raw_io
|
|
|
|
[recipe_engine/recipe_modules/raw_io]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/04620158d8f45c68cc8bc39e30ce4a85c368046a/README.recipes.md#recipe_modules-raw_io
|
|
|
|
[recipe_engine/recipe_modules/runtime]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/f46a599f105746e2f0ce7068c630e312f2113893/README.recipes.md#recipe_modules-runtime
|
|
|
|
[recipe_engine/recipe_modules/runtime]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/04620158d8f45c68cc8bc39e30ce4a85c368046a/README.recipes.md#recipe_modules-runtime
|
|
|
|
[recipe_engine/recipe_modules/source_manifest]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/f46a599f105746e2f0ce7068c630e312f2113893/README.recipes.md#recipe_modules-source_manifest
|
|
|
|
[recipe_engine/recipe_modules/source_manifest]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/04620158d8f45c68cc8bc39e30ce4a85c368046a/README.recipes.md#recipe_modules-source_manifest
|
|
|
|
[recipe_engine/recipe_modules/step]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/f46a599f105746e2f0ce7068c630e312f2113893/README.recipes.md#recipe_modules-step
|
|
|
|
[recipe_engine/recipe_modules/step]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/04620158d8f45c68cc8bc39e30ce4a85c368046a/README.recipes.md#recipe_modules-step
|
|
|
|
[recipe_engine/recipe_modules/url]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/f46a599f105746e2f0ce7068c630e312f2113893/README.recipes.md#recipe_modules-url
|
|
|
|
[recipe_engine/recipe_modules/url]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/04620158d8f45c68cc8bc39e30ce4a85c368046a/README.recipes.md#recipe_modules-url
|
|
|
|
[recipe_engine/wkt/RecipeApi]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/f46a599f105746e2f0ce7068c630e312f2113893/recipe_engine/recipe_api.py#1012
|
|
|
|
[recipe_engine/wkt/RecipeApi]: https://chromium.googlesource.com/infra/luci/recipes-py.git/+/04620158d8f45c68cc8bc39e30ce4a85c368046a/recipe_engine/recipe_api.py#1012
|
|
|
|