|
|
|
|
@ -370,7 +370,7 @@ Returns:
|
|
|
|
|
|
|
|
|
|
Return a git command step.
|
|
|
|
|
|
|
|
|
|
— **def [bundle\_create](/recipes/recipe_modules/git/api.py#366)(self, bundle_path, rev_list_args=None, \*\*kwargs):**
|
|
|
|
|
— **def [bundle\_create](/recipes/recipe_modules/git/api.py#370)(self, bundle_path, rev_list_args=None, \*\*kwargs):**
|
|
|
|
|
|
|
|
|
|
Run 'git bundle create' on a Git repository.
|
|
|
|
|
|
|
|
|
|
@ -384,7 +384,7 @@ Args:
|
|
|
|
|
|
|
|
|
|
Outputs the contents of a file at a given revision.
|
|
|
|
|
|
|
|
|
|
— **def [checkout](/recipes/recipe_modules/git/api.py#110)(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):**
|
|
|
|
|
— **def [checkout](/recipes/recipe_modules/git/api.py#110)(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):**
|
|
|
|
|
|
|
|
|
|
Performs a full git checkout and returns sha1 of checked out revision.
|
|
|
|
|
|
|
|
|
|
@ -417,11 +417,12 @@ Args:
|
|
|
|
|
to a local path, may cause problem with scripts that do
|
|
|
|
|
"git fetch origin" or "git push origin".
|
|
|
|
|
* arbitrary refs such refs/whatever/not-fetched-by-default-to-cache
|
|
|
|
|
progress (bool): wether to show progress for fetch or not
|
|
|
|
|
|
|
|
|
|
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#339)(self, prop_name, \*\*kwargs):**
|
|
|
|
|
— **def [config\_get](/recipes/recipe_modules/git/api.py#343)(self, prop_name, \*\*kwargs):**
|
|
|
|
|
|
|
|
|
|
Returns: (str) The Git config output, or None if no output was generated.
|
|
|
|
|
|
|
|
|
|
@ -446,7 +447,7 @@ Returns:
|
|
|
|
|
|
|
|
|
|
Fetches all tags from the remote.
|
|
|
|
|
|
|
|
|
|
— **def [get\_remote\_url](/recipes/recipe_modules/git/api.py#356)(self, remote_name=None, \*\*kwargs):**
|
|
|
|
|
— **def [get\_remote\_url](/recipes/recipe_modules/git/api.py#360)(self, remote_name=None, \*\*kwargs):**
|
|
|
|
|
|
|
|
|
|
Returns: (str) The URL of the remote Git repository, or None.
|
|
|
|
|
|
|
|
|
|
@ -454,11 +455,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#311)(self, commit='HEAD', test_data=None, \*\*kwargs):**
|
|
|
|
|
— **def [get\_timestamp](/recipes/recipe_modules/git/api.py#315)(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#379)(self, branch, name=None, upstream=None, \*\*kwargs):**
|
|
|
|
|
— **def [new\_branch](/recipes/recipe_modules/git/api.py#383)(self, branch, name=None, upstream=None, \*\*kwargs):**
|
|
|
|
|
|
|
|
|
|
Runs git new-branch on a Git repository, to be used before git cl upload.
|
|
|
|
|
|
|
|
|
|
@ -468,7 +469,7 @@ Args:
|
|
|
|
|
upstream (str): to origin/master.
|
|
|
|
|
kwargs: Forwarded to '__call__'.
|
|
|
|
|
|
|
|
|
|
— **def [rebase](/recipes/recipe_modules/git/api.py#320)(self, name_prefix, branch, dir_path, remote_name=None, \*\*kwargs):**
|
|
|
|
|
— **def [rebase](/recipes/recipe_modules/git/api.py#324)(self, name_prefix, branch, dir_path, remote_name=None, \*\*kwargs):**
|
|
|
|
|
|
|
|
|
|
Run rebase HEAD onto branch
|
|
|
|
|
Args:
|
|
|
|
|
|