@@ -461,7 +461,8 @@ def iter_commits(self, rev=None, paths='', **kwargs):
461
461
return Commit .iter_items (self , rev , paths , ** kwargs )
462
462
463
463
def merge_base (self , * rev , ** kwargs ):
464
- """Find the closest common ancestor for the given revision (e.g. Commits, Tags, References, etc).
464
+ """Find the closest common ancestor for the given revision (e.g. Commits, Tags, References, etc)
465
+
465
466
:param rev: At least two revs to find the common ancestor for.
466
467
:param kwargs: Additional arguments to be passed to the repo.git.merge_base() command which does all the work.
467
468
:return: A list of Commit objects. If --all was not specified as kwarg, the list will have at max one Commit,
@@ -814,16 +815,13 @@ def _clone(cls, git, url, path, odb_default_type, progress, **kwargs):
814
815
815
816
def clone (self , path , progress = None , ** kwargs ):
816
817
"""Create a clone from this repository.
817
- :param path:
818
- is the full path of the new repo (traditionally ends with ./<name>.git).
819
818
819
+ :param path: is the full path of the new repo (traditionally ends with ./<name>.git).
820
820
:param progress: See 'git.remote.Remote.push'.
821
-
822
821
:param kwargs:
823
- odbt = ObjectDatabase Type, allowing to determine the object database
824
- implementation used by the returned Repo instance
825
-
826
- All remaining keyword arguments are given to the git-clone command
822
+ * odbt = ObjectDatabase Type, allowing to determine the object database
823
+ implementation used by the returned Repo instance
824
+ * All remaining keyword arguments are given to the git-clone command
827
825
828
826
:return: ``git.Repo`` (the newly cloned repo)"""
829
827
return self ._clone (self .git , self .git_dir , path , type (self .odb ), progress , ** kwargs )
@@ -840,16 +838,16 @@ def clone_from(cls, url, to_path, progress=None, **kwargs):
840
838
841
839
def archive (self , ostream , treeish = None , prefix = None , ** kwargs ):
842
840
"""Archive the tree at the given revision.
841
+
843
842
:parm ostream: file compatible stream object to which the archive will be written as bytes
844
843
:parm treeish: is the treeish name/id, defaults to active branch
845
844
:parm prefix: is the optional prefix to prepend to each filename in the archive
846
- :parm kwargs:
847
- Additional arguments passed to git-archive
848
- NOTE: Use the 'format' argument to define the kind of format. Use
849
- specialized ostreams to write any format supported by python.
845
+ :parm kwargs: Additional arguments passed to git-archive
850
846
851
- You may specify the special 'path' keyword, which may either be a repository-relative
852
- path to a directory or file to place into the archive, or a list or tuple of multipe paths.
847
+ * Use the 'format' argument to define the kind of format. Use
848
+ specialized ostreams to write any format supported by python.
849
+ * You may specify the special **path** keyword, which may either be a repository-relative
850
+ path to a directory or file to place into the archive, or a list or tuple of multipe paths.
853
851
854
852
:raise GitCommandError: in case something went wrong
855
853
:return: self"""
0 commit comments