@ -360,13 +360,13 @@ Returns:
PYTHON_VERSION_COMPATIBILITY: PY2+3
#### **class [GitApi ](/recipes/recipe_modules/git/api.py#1 8 )([RecipeApi][recipe_engine/wkt/RecipeApi]):**
#### **class [GitApi ](/recipes/recipe_modules/git/api.py#1 9 )([RecipeApi][recipe_engine/wkt/RecipeApi]):**
— **def [\_\_call\_\_ ](/recipes/recipe_modules/git/api.py#2 1 )(self, \*args, \*\*kwargs):**
— **def [\_\_call\_\_ ](/recipes/recipe_modules/git/api.py#2 2 )(self, \*args, \*\*kwargs):**
Returns a git command step.
— **def [bundle\_create ](/recipes/recipe_modules/git/api.py#3 8 9)(self, bundle_path, rev_list_args=None, \*\*kwargs):**
— **def [bundle\_create ](/recipes/recipe_modules/git/api.py#3 90 )(self, bundle_path, rev_list_args=None, \*\*kwargs):**
Runs 'git bundle create' on a Git repository.
@ -376,11 +376,11 @@ Args:
refs in the Git checkout will be bundled.
* kwargs: Forwarded to '__call__'.
— **def [cat\_file\_at\_commit ](/recipes/recipe_modules/git/api.py#4 8 )(self, file_path, commit_hash, remote_name=None, \*\*kwargs):**
— **def [cat\_file\_at\_commit ](/recipes/recipe_modules/git/api.py#4 9 )(self, file_path, commit_hash, remote_name=None, \*\*kwargs):**
Outputs the contents of a file at a given revision.
— **def [checkout ](/recipes/recipe_modules/git/api.py#12 2 )(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#12 3 )(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.
@ -419,7 +419,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#35 8 )(self, prop_name, \*\*kwargs):**
— **def [config\_get ](/recipes/recipe_modules/git/api.py#35 9 )(self, prop_name, \*\*kwargs):**
Returns git config output.
@ -429,7 +429,7 @@ Args:
Returns: (str) The Git config output, or None if no output was generated.
— **def [count\_objects ](/recipes/recipe_modules/git/api.py#5 6 )(self, previous_result=None, can_fail_build=False, \*\*kwargs):**
— **def [count\_objects ](/recipes/recipe_modules/git/api.py#5 7 )(self, previous_result=None, can_fail_build=False, \*\*kwargs):**
Returns `git count-objects` result as a dict.
@ -442,11 +442,11 @@ Args:
Returns:
A dict of count-object values, or None if count-object run failed.
— **def [fetch\_tags ](/recipes/recipe_modules/git/api.py#4 2 )(self, remote_name=None, \*\*kwargs):**
— **def [fetch\_tags ](/recipes/recipe_modules/git/api.py#4 3 )(self, remote_name=None, \*\*kwargs):**
Fetches all tags from the remote.
— **def [get\_remote\_url ](/recipes/recipe_modules/git/api.py#37 7 )(self, remote_name=None, \*\*kwargs):**
— **def [get\_remote\_url ](/recipes/recipe_modules/git/api.py#37 8 )(self, remote_name=None, \*\*kwargs):**
Returns the remote Git repository URL, or None.
@ -456,11 +456,11 @@ Args:
Returns: (str) The URL of the remote Git repository, or None.
— **def [get\_timestamp ](/recipes/recipe_modules/git/api.py#3 29 )(self, commit='HEAD', test_data=None, \*\*kwargs):**
— **def [get\_timestamp ](/recipes/recipe_modules/git/api.py#3 30 )(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#40 2 )(self, branch, name=None, upstream=None, upstream_current=False, \*\*kwargs):**
— **def [new\_branch ](/recipes/recipe_modules/git/api.py#40 3 )(self, branch, name=None, upstream=None, upstream_current=False, \*\*kwargs):**
Runs git new-branch on a Git repository, to be used before git cl
upload.
@ -472,7 +472,7 @@ Args:
* upstream_current (bool): whether to use '--upstream_current'.
* kwargs: Forwarded to '__call__'.
— **def [rebase ](/recipes/recipe_modules/git/api.py#33 8 )(self, name_prefix, branch, dir_path, remote_name=None, \*\*kwargs):**
— **def [rebase ](/recipes/recipe_modules/git/api.py#33 9 )(self, name_prefix, branch, dir_path, remote_name=None, \*\*kwargs):**
Runs rebase HEAD onto branch