|
|
|
@ -384,7 +384,7 @@ PYTHON_VERSION_COMPATIBILITY: PY2+3
|
|
|
|
|
|
|
|
|
|
Returns 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):**
|
|
|
|
|
|
|
|
|
|
Runs 'git bundle create' on a Git repository.
|
|
|
|
|
|
|
|
|
@ -437,7 +437,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#352)(self, prop_name, \*\*kwargs):**
|
|
|
|
|
— **def [config\_get](/recipes/recipe_modules/git/api.py#351)(self, prop_name, \*\*kwargs):**
|
|
|
|
|
|
|
|
|
|
Returns git config output.
|
|
|
|
|
|
|
|
|
@ -464,7 +464,7 @@ Returns:
|
|
|
|
|
|
|
|
|
|
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#370)(self, remote_name=None, \*\*kwargs):**
|
|
|
|
|
|
|
|
|
|
Returns the remote Git repository URL, or None.
|
|
|
|
|
|
|
|
|
@ -474,11 +474,11 @@ Args:
|
|
|
|
|
|
|
|
|
|
Returns: (str) The URL of the remote Git repository, or None.
|
|
|
|
|
|
|
|
|
|
— **def [get\_timestamp](/recipes/recipe_modules/git/api.py#323)(self, commit='HEAD', test_data=None, \*\*kwargs):**
|
|
|
|
|
— **def [get\_timestamp](/recipes/recipe_modules/git/api.py#322)(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, upstream_current=False, \*\*kwargs):**
|
|
|
|
|
— **def [new\_branch](/recipes/recipe_modules/git/api.py#395)(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.
|
|
|
|
@ -490,7 +490,7 @@ Args:
|
|
|
|
|
* upstream_current (bool): whether to use '--upstream_current'.
|
|
|
|
|
* kwargs: Forwarded to '__call__'.
|
|
|
|
|
|
|
|
|
|
— **def [number](/recipes/recipe_modules/git/api.py#427)(self, commitrefs=None, test_values=None):**
|
|
|
|
|
— **def [number](/recipes/recipe_modules/git/api.py#426)(self, commitrefs=None, test_values=None):**
|
|
|
|
|
|
|
|
|
|
Computes the generation number of some commits.
|
|
|
|
|
|
|
|
|
@ -507,7 +507,7 @@ A list of strings containing the generation numbers of the commits.
|
|
|
|
|
If non-empty commitrefs was provided, the order of the returned
|
|
|
|
|
numbers will correspond to the order of the provided commitrefs.
|
|
|
|
|
|
|
|
|
|
— **def [rebase](/recipes/recipe_modules/git/api.py#332)(self, name_prefix, branch, dir_path, remote_name=None, \*\*kwargs):**
|
|
|
|
|
— **def [rebase](/recipes/recipe_modules/git/api.py#331)(self, name_prefix, branch, dir_path, remote_name=None, \*\*kwargs):**
|
|
|
|
|
|
|
|
|
|
Runs rebase HEAD onto branch
|
|
|
|
|
|
|
|
|
|