Module Expr Str ImportFrom alias ImportFrom alias identifier alias alias alias alias alias alias alias ImportFrom alias alias Import alias Import alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot NameLoad body Return NameLoad Assign NameStore Call NameLoad NameLoad If Call NameLoad NameLoad body Assign NameStore Call NameLoad Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad If CompareNotEq Call NameLoad ListLoad NameLoad NameLoad NameLoad body Raise Call NameLoad keyword BinOpMod Str NameLoad keyword NameLoad orelse Pass orelse If CompareEq Call NameLoad ListLoad Call NameLoad Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad Call NameLoad Call NameLoad NameLoad orelse Return NameLoad Return Call NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad Return Call NameLoad NameLoad NameLoad NameLoad NameLoad decorator_list Call NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults vararg kwarg body Assign NameStore IfExp Call AttributeLoad NameLoad attr Str NameLoad NameLoad Lambda arguments args NameParam NameParam defaults NameLoad If NameLoad body If BoolOpOr Call NameLoad NameLoad NameLoad UnaryOpNot NameLoad body Assign NameStore ListLoad Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad orelse If Call NameLoad NameLoad NameLoad body Assign NameStore ListComp Call NameLoad AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad Assign NameStore NameLoad orelse Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad orelse Assign NameStore NameLoad Assign NameStore ListLoad If NameLoad body FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Assert CompareEq Call NameLoad NameLoad Call NameLoad NameLoad Assign NameStore IfExp NameLoad ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad Return NameLoad orelse Return NameLoad decorator_list orelse Assign NameStore Lambda arguments args NameParam defaults NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad If CompareIs NameLoad NameLoad body Return NameLoad orelse If BoolOpOr CompareIs NameLoad NameLoad UnaryOpNot NameLoad UnaryOpNot NameLoad body Return Call NameLoad NameLoad orelse If NameLoad body If CompareNotEq Call NameLoad NameLoad Num body Return Call NameLoad NameLoad orelse If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Return SubscriptLoad NameLoad Index Num orelse If BoolOpAnd Call NameLoad NameLoad NameLoad CompareEq SubscriptLoad Call NameLoad NameLoad Index Num SubscriptLoad NameLoad Index Num body Return SubscriptLoad Call NameLoad Call AttributeLoad NameLoad attr Index Num orelse Return Call NameLoad NameLoad orelse Return Call NameLoad Str decorator_list Call NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str Call NameLoad NameLoad Return NameLoad Return ListComp NameLoad comprehension NameStore NameLoad NameLoad decorator_list FunctionDef arguments args defaults vararg kwarg body Expr Str If CompareNotIn Str NameLoad body Assign SubscriptStore NameLoad Index Str NameLoad Return Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Str Str Str Assign NameStore ListLoad Str Str Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr BoolOpOr NameLoad Call NameLoad keyword AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Raise ExceptHandler type NameLoad name NameStore body If BoolOpAnd CompareEq AttributeLoad NameLoad attr Str CompareEq AttributeLoad NameLoad attr Str body Raise Call NameLoad Str Num keyword IfExp Call NameLoad NameLoad Str Str Raise If BoolOpAnd NameLoad UnaryOpNot Call NameLoad Call NameLoad NameLoad Str body TryExcept body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Raise orelse TryExcept body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad handlers ExceptHandler type TupleLoad NameLoad NameLoad NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Raise decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMod Str TupleLoad AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign TupleStore NameStore NameStore Call AttributeLoad Call NameLoad attr ListLoad Str Str Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr Str handlers ExceptHandler type NameLoad body Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If NameLoad body TryExcept body Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad keyword NameLoad handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Raise orelse Expr Call AttributeLoad NameLoad attr Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign NameStore Call NameLoad NameLoad Return Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad keyword NameLoad NameLoad decorator_list Call NameLoad keyword NameLoad FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If UnaryOpNot NameLoad body Assign NameStore Str If NameLoad body Raise NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return ListComp SubscriptLoad NameLoad Index Num comprehension NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Return AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr For NameStore AttributeLoad AttributeLoad NameLoad attr attr body If CompareEq AttributeLoad NameLoad attr NameLoad body Return AttributeLoad AttributeLoad NameLoad attr attr Raise Call NameLoad BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Str orelse If CompareEq Call NameLoad NameLoad Num body Assign NameStore BinOpAdd NameLoad ListLoad Call AttributeLoad NameLoad attr TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad handlers ExceptHandler type NameLoad name NameStore body If CompareIn Str Call NameLoad NameLoad body Return NameLoad Raise If UnaryOpNot NameLoad body Return NameLoad Assert CompareEq Call NameLoad NameLoad Num Return AttributeLoad SubscriptLoad NameLoad Index Num attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad For NameStore AttributeLoad AttributeLoad NameLoad attr attr body TryExcept body For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body If Call AttributeLoad AttributeLoad NameLoad attr attr Str body Pass orelse Raise NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str If CompareIs NameLoad NameLoad body Return Call AttributeLoad NameLoad attr orelse Return ListComp AttributeLoad NameLoad attr comprehension NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str Assign NameStore Call AttributeLoad AttributeLoad SubscriptLoad AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad attr Index NameLoad attr attr ImportFrom alias If NameLoad body Assign NameStore Str For NameStore Call NameLoad NameLoad body AugAssignAdd NameStore Call NameLoad NameLoad Return Call AttributeLoad NameLoad attr orelse Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad body Expr Str Assign NameStore IfExp Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad Str Call AttributeLoad Str attr NameLoad keyword UnaryOpNot NameLoad BinOpAdd NameLoad NameLoad Assert CompareEq SubscriptLoad NameLoad Index Num Str Assign NameStore BinOpAdd BinOpAdd SubscriptLoad NameLoad Slice Num AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice Num Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list Call NameLoad keyword NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Str body Expr Str Return Call AttributeLoad NameLoad attr Str BinOpMod Str TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr Str BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Expr Str Assign NameStore IfExp NameLoad Str Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str BinOpMod Str TupleLoad NameLoad NameLoad Return Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Expr Str Assign NameStore IfExp NameLoad Str Str Expr Call AttributeLoad NameLoad attr Str BinOpMod Str TupleLoad NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str Expr Call AttributeLoad NameLoad attr Str BinOpMod Str TupleLoad NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str BinOpMod Str NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str Assign NameStore SubscriptLoad Dict NameLoad Str Lambda arguments args NameParam defaults NameLoad Lambda arguments args NameParam defaults AttributeLoad NameLoad attr Index NameLoad If UnaryOpNot NameLoad body FunctionDef arguments args defaults body Assign NameStore AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad attr Expr Yield NameLoad For NameStore Call AttributeLoad NameLoad attr body Expr Yield NameLoad decorator_list orelse If CompareEq NameLoad Str body FunctionDef arguments args defaults body Assign NameStore AttributeLoad SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index NameLoad attr While NameLoad body Expr Yield NameLoad Assign NameStore IfExp AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad decorator_list orelse Raise Call NameLoad NameLoad For NameStore Call NameLoad body If BoolOpAnd NameLoad CompareEq AttributeLoad NameLoad attr NameLoad body Return Expr Yield Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str Str body Expr Str Return Call AttributeLoad NameLoad attr Str BinOpMod Str TupleLoad NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str Str body Expr Str Expr Call AttributeLoad NameLoad attr Str BinOpMod Str TupleLoad NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str Expr Call AttributeLoad NameLoad attr Str BinOpMod Str TupleLoad NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults ListLoad NameLoad kwarg body If NameLoad body Assign NameStore BinOpAdd NameLoad ListLoad Str NameLoad Expr Call AttributeLoad NameLoad attr Str BinOpAdd BinOpAdd ListLoad Str Str NameLoad ListLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str BinOpMod Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr Str BinOpMod Str TupleLoad IfExp CompareIsNot NameLoad NameLoad NameLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore ListLoad Str If UnaryOpNot NameLoad body AugAssignAdd NameStore ListLoad Str Str AugAssignAdd NameStore ListLoad Str Str If NameLoad body AugAssignAdd NameStore ListLoad Str Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list decorator_list
N/A N/A Interface to Git via GitPython

For further information on GitPython see http://gitpython.readthedocs.org/

 os linesep os.path join opj exists normpath isabs commonprefix relpath realpath isdir os.path dirname basename N/A logging N/A shlex six string_types functools wraps N/A git git.exc GitCommandError NoSuchPathError InvalidGitRepositoryError git.objects.blob Blob support.exceptions CommandError support.exceptions FileNotInRepositoryError cmd Runner utils optional_args on_windows getpwd utils swallow_outputs N/A lgr N/A N/A logging getLogger datalad.gitrepo N/A default_git_odbt N/A git GitCmdObjectDB _normalize_path N/A N/A base_dir path N/A N/A N/A Helper to check paths passed to methods of this class.

    Checks whether `path` is beneath `base_dir` and normalize it.
    Additionally paths are converted into relative paths with respect to
    `base_dir`, considering PWD in case of relative paths. This
    is intended to be used in repository classes, which means that
    `base_dir` usually will be the repository's base directory.

    Parameters
    ----------
    path: str
        path to be normalized
    base_dir: str
        directory to serve as base to normalized, relative paths

    Returns
    -------
    str:
        path, that is a relative path with respect to `base_dir`
     N/A N/A path N/A N/A path N/A base_dir N/A realpath base_dir N/A N/A isabs path N/A N/A path N/A opj N/A realpath N/A dirname path N/A basename path N/A N/A N/A commonprefix N/A path base_dir base_dir N/A N/A N/A FileNotInRepositoryError msg N/A Path outside repository: %s path filename path N/A N/A N/A N/A N/A N/A commonprefix N/A N/A realpath N/A getpwd base_dir base_dir N/A N/A path N/A opj N/A realpath N/A getpwd path N/A N/A path N/A N/A relpath path start base_dir N/A normalize_path N/A N/A func N/A N/A N/A Decorator to provide unified path conversion for a single file

    Unlike normalize_paths, intended to be used for functions dealing with a
    single filename at a time

    Note
    ----
    This is intended to be used within the repository classes and therefore
    returns a class method!

    The decorated function is expected to take a path at
    first positional argument (after 'self'). Additionally the class `func`
    is a member of, is expected to have an attribute 'path'.
     newfunc N/A N/A self file_ N/A args kwargs N/A N/A file_new N/A _normalize_path N/A self path file_ N/A N/A func self file_new args kwargs N/A N/A wraps func N/A newfunc N/A optional_args normalize_paths N/A N/A func match_return_type map_filenames_back N/A True False N/A N/A Decorator to provide unified path conversions.

    Note
    ----
    This is intended to be used within the repository classes and therefore
    returns a class method!

    The decorated function is expected to take a path or a list of paths at
    first positional argument (after 'self'). Additionally the class `func`
    is a member of, is expected to have an attribute 'path'.

    Accepts either a list of paths or a single path in a str. Passes a list
    to decorated function either way, but would return based on the value of
    match_return_type and possibly input argument.

    If a call to the wrapped function includes normalize_path and it is False
    no normalization happens for that function call (used for calls to wrapped
    functions within wrapped functions, while possible CWD is within a repository)

    Parameters
    ----------
    match_return_type : bool, optional
      If True, and a single string was passed in, it would return the first
      element of the output (after verifying that it is a list of length 1).
      It makes easier to work with single files input.
    map_filenames_back : bool, optional
      If True and returned value is a dictionary, it assumes to carry entries
      one per file, and then filenames are mapped back to as provided from the
      normalized (from the root of the repo) paths
     newfunc N/A N/A self files N/A args kwargs N/A N/A normalize N/A N/A N/A kwargs pop normalize_paths True _normalize_path N/A N/A N/A rpath filepath N/A filepath N/A files N/A N/A N/A N/A isinstance files string_types N/A files N/A N/A files_new N/A N/A normalize N/A self path files N/A single_file True N/A N/A N/A isinstance files list N/A N/A files_new N/A N/A normalize N/A self path path N/A path files N/A single_file False N/A N/A N/A ValueError N/A _files_decorator: Don't know how to handle instance of %s. N/A type files N/A N/A single_file None N/A files_new N/A N/A map_filenames_back N/A remap_filenames N/A N/A out N/A N/A N/A Helper to map files back to non-normalized paths N/A N/A isinstance out dict N/A N/A N/A N/A len out N/A len files_new N/A files_ N/A single_file N/A files files N/A mapped N/A N/A out __class__ N/A N/A fin fout N/A zip files_ files_new N/A N/A N/A mapped N/A fin N/A out N/A fout N/A mapped N/A N/A out N/A N/A N/A remap_filenames N/A N/A N/A x N/A x N/A result N/A func self files_new args kwargs N/A N/A single_file None N/A N/A result N/A N/A N/A N/A result None N/A match_return_type N/A single_file N/A N/A N/A remap_filenames result N/A N/A single_file N/A N/A N/A N/A len result 1 N/A N/A N/A remap_filenames result N/A N/A N/A isinstance result N/A list tuple N/A N/A N/A result N/A 0 N/A N/A N/A N/A isinstance result dict N/A N/A N/A tuple result N/A 0 N/A files_new N/A 0 N/A N/A N/A N/A tuple N/A N/A result values N/A 0 N/A N/A N/A remap_filenames result N/A N/A N/A RuntimeError should have not got here... check logic N/A N/A wraps func N/A newfunc N/A optional_args _remove_empty_items N/A N/A list_ N/A N/A N/A Remove empty entries from list

    This is needed, since some functions of GitPython may convert
    an empty entry to '.', when used with a list of paths.

    Parameter:
    ----------
    list_: list of str

    Returns
    -------
    list of str
     N/A N/A N/A isinstance list_ list N/A N/A N/A N/A lgr warning N/A _remove_empty_items() called with non-list type: %s N/A type list_ N/A list_ N/A N/A file_ N/A file_ list_ file_ N/A Repo N/A N/A N/A args kwargs N/A N/A Factory method around git.Repo to consistently initiate with different backend
     N/A N/A odbt kwargs N/A N/A N/A kwargs N/A odbt default_git_odbt N/A N/A N/A git Repo args kwargs N/A GitRepo N/A object N/A N/A Representation of a git repository

    Not sure if needed yet, since there is GitPython. By now, wrap it to have
    control. Convention: method's names starting with 'git_' to not be
    overridden accidentally by AnnexRepo.

     N/A __slots__ N/A path repo cmd_call_wrapper N/A _GIT_COMMON_OPTIONS N/A -c receive.autogc=0 -c gc.auto=0 __init__ N/A N/A self path url runner create N/A None None True N/A N/A Creates representation of git repository at `path`.

        If `url` is given, a clone is created at `path`.
        Can also be used to create a git repository at `path`.

        Parameters
        ----------
        path: str
          path to the git repository; In case it's not an absolute path,
          it's relative to PWD
        url: str
          url to the to-be-cloned repository. Requires a valid git url
          according to:
          http://www.kernel.org/pub/software/scm/git/docs/git-clone.html#URLS .
        create: bool
          if true, creates a git repository at `path` if there is none. Also
          creates `path`, if it doesn't exist.
          If set to false, an exception is raised in case `path` doesn't exist
          or doesn't contain a git repository.
         N/A N/A self path N/A normpath path N/A N/A self cmd_call_wrapper N/A runner N/A Runner cwd N/A self path N/A N/A url None N/A N/A N/A N/A N/A N/A self cmd_call_wrapper N/A N/A git Repo clone_from url path N/A N/A N/A GitCommandError N/A e N/A N/A N/A N/A lgr error N/A str e N/A N/A N/A ValueError N/A e N/A N/A N/A N/A N/A git __version__ 1.0.2 N/A N/A e message I/O operation on closed file N/A N/A N/A GitCommandError clone has failed, telling ya 999 stdout N/A N/A exists path %s already exists N/A N/A N/A create N/A N/A exists N/A opj path .git N/A N/A N/A N/A N/A self repo N/A N/A self cmd_call_wrapper N/A N/A git Repo init path True odbt default_git_odbt N/A N/A N/A GitCommandError N/A e N/A N/A N/A N/A lgr error N/A str e N/A N/A N/A N/A N/A N/A self repo N/A N/A self cmd_call_wrapper Repo path N/A N/A N/A N/A GitCommandError NoSuchPathError InvalidGitRepositoryError N/A e N/A N/A N/A N/A lgr error N/A str e N/A N/A __repr__ N/A N/A self N/A N/A N/A N/A <GitRepo path=%s (%s)> N/A N/A self path N/A type self N/A __eq__ N/A N/A self obj N/A N/A N/A Decides whether or not two instances of this class are equal.

        This is done by comparing the base repository path.
         N/A N/A N/A self path N/A obj path N/A get_toppath N/A N/A cls path N/A N/A N/A Return top-level of a repository given the path.

        If path has symlinks -- they get resolved.

        Returns None if not under git
         N/A N/A N/A N/A toppath err N/A N/A N/A Runner run N/A git rev-parse --show-toplevel cwd path log_stdout True log_stderr True expect_fail True expect_stderr True N/A N/A N/A toppath rstrip N/A N/A N/A CommandError N/A N/A None N/A classmethod git_add N/A N/A self files N/A N/A N/A Adds file(s) to the repository.

        Parameters
        ----------
        files: list
            list of paths to add
         N/A files N/A _remove_empty_items files N/A files N/A N/A N/A N/A N/A N/A self cmd_call_wrapper N/A N/A N/A self repo index add files write True N/A N/A N/A OSError N/A e N/A N/A N/A N/A lgr error N/A git_add: %s e N/A N/A N/A N/A N/A lgr warning git_add was called with empty file list. N/A normalize_paths git_remove N/A N/A self files N/A kwargs N/A N/A Remove files.

        Parameters
        ----------
        files: str
          list of paths to remove

        Returns
        -------
        [str]
          list of successfully removed files.
         N/A files N/A _remove_empty_items files N/A N/A N/A N/A N/A self repo index remove files working_tree True kwargs N/A N/A normalize_paths match_return_type False precommit N/A N/A self N/A N/A N/A Perform pre-commit maintenance tasks
         N/A N/A N/A N/A N/A self repo index write N/A git_commit N/A N/A self msg options N/A None None N/A N/A Commit changes to git.

        Parameters
        ----------
        msg: str
            commit-message
        options:
            to be implemented. See options_decorator in annexrepo.
         N/A N/A msg N/A N/A msg Commit N/A options N/A N/A NotImplementedError N/A N/A N/A lgr debug N/A Committing with msg=%r msg N/A N/A N/A self cmd_call_wrapper N/A N/A N/A self repo index commit msg N/A get_indexed_files N/A N/A self N/A N/A N/A Get a list of files in git's index

        Returns
        -------
        list
            list of paths rooting in git's base dir
         N/A N/A N/A x N/A 0 N/A x N/A N/A self cmd_call_wrapper N/A N/A N/A N/A self repo index entries keys N/A git_get_hexsha N/A N/A self branch N/A None N/A N/A Return a hexsha for a given branch name. If None - of current branch

        Parameters
        ----------
        branch: str, optional
         N/A N/A branch None N/A N/A N/A N/A N/A N/A self repo active_branch object hexsha N/A b N/A N/A self repo branches N/A N/A N/A N/A b name branch N/A N/A N/A N/A b object hexsha N/A N/A ValueError N/A Unknown branch %s branch N/A git_get_merge_base N/A N/A self treeishes N/A N/A N/A Get a merge base hexsha

        Parameters
        ----------
        treeishes: str or list of str
          List of treeishes (branches, hexshas, etc) to determine the merge base of.
          If a single value provided, returns merge_base with the current branch.

        Returns
        -------
        str or None
          If no merge-base for given commits, or specified treeish doesn't exist,
          None returned
         N/A N/A isinstance treeishes string_types N/A N/A treeishes N/A treeishes N/A N/A treeishes N/A N/A N/A ValueError Provide at least a single value N/A N/A N/A N/A len treeishes 1 N/A N/A treeishes N/A treeishes N/A N/A N/A self git_get_active_branch N/A N/A N/A bases N/A N/A N/A self repo merge_base treeishes N/A N/A N/A GitCommandError N/A exc N/A N/A N/A fatal: Not a valid object name N/A str exc N/A N/A None N/A N/A N/A bases N/A N/A None N/A N/A N/A len bases 1 N/A N/A N/A bases N/A 0 hexsha N/A git_get_active_branch N/A N/A self N/A N/A N/A N/A N/A N/A self repo active_branch name N/A git_get_branches N/A N/A self N/A N/A N/A Get all branches of the repo.

        Returns
        -------
        [str]
            Names of all branches of this repository.
         N/A N/A N/A branch name N/A branch N/A N/A self repo branches N/A git_get_remote_branches N/A N/A self N/A N/A N/A Get all branches of all remotes of the repo.

        Returns
        -----------
        [str]
            Names of all remote branches.
         N/A remote_branches N/A list N/A remote N/A N/A self repo remotes N/A N/A N/A N/A ref N/A remote refs N/A N/A N/A N/A remote_branches append N/A ref name N/A N/A N/A AssertionError N/A e N/A N/A N/A N/A N/A e message endswith did not have any references N/A N/A N/A N/A e N/A remote_branches N/A git_get_remotes N/A N/A self N/A N/A N/A N/A N/A remote name N/A remote N/A N/A self repo remotes N/A git_get_files N/A N/A self branch N/A None N/A N/A Get a list of files in git.

        Lists the files in the (remote) branch.

        Parameters
        ----------
        branch: str
          Name of the branch to query. Default: active branch.

        Returns
        -------
        [str]
          list of files.
         N/A N/A branch None N/A N/A N/A N/A self get_indexed_files N/A N/A N/A N/A item path N/A item N/A N/A N/A N/A N/A self repo tree branch traverse N/A isinstance item Blob N/A git_get_file_content N/A N/A self file_ branch N/A HEAD N/A N/A 

        Returns
        -------
        [str]
          content of file_ as a list of lines.
         N/A content_str N/A N/A N/A N/A N/A N/A N/A N/A self repo commit branch tree N/A file_ data_stream read six PY3 N/A PY3 N/A N/A conv_str N/A b N/A bytes content_str N/A N/A conv_str N/A chr b N/A N/A N/A conv_str splitlines N/A N/A N/A N/A content_str splitlines N/A _git_custom_command N/A N/A self files cmd_str log_stdout log_stderr log_online expect_stderr cwd env shell N/A True True False True None None None N/A N/A Allows for calling arbitrary commands.

        Helper for developing purposes, i.e. to quickly implement git commands
        for proof of concept without the need to figure out, how this is done
        via GitPython.

        Parameters
        ----------
        files: list of files
        cmd_str: str
            arbitrary command str. `files` is appended to that string.

        Returns
        -------
        stdout, stderr
         N/A cmd N/A N/A isinstance cmd_str string_types N/A N/A shlex split N/A N/A cmd_str N/A N/A join files posix N/A on_windows N/A cmd_str files N/A N/A N/A cmd N/A 0 git N/A cmd N/A N/A N/A cmd N/A 1 N/A self _GIT_COMMON_OPTIONS N/A cmd N/A 1 N/A N/A N/A N/A self cmd_call_wrapper run cmd log_stderr log_stderr log_stdout log_stdout log_online log_online expect_stderr expect_stderr cwd cwd env env shell shell N/A N/A normalize_paths match_return_type False git_remote_add N/A N/A self name url options N/A N/A N/A N/A N/A N/A self _git_custom_command N/A git remote add %s %s %s N/A options name url N/A git_remote_remove N/A N/A self name N/A N/A N/A N/A N/A N/A self _git_custom_command N/A git remote remove %s name N/A git_remote_show N/A N/A self name verbose N/A False N/A N/A N/A v N/A verbose -v N/A N/A out err N/A N/A self _git_custom_command N/A git remote %s show %s N/A v name N/A N/A N/A N/A N/A out rstrip linesep splitlines N/A git_remote_update N/A N/A self name verbose N/A False N/A N/A N/A v N/A verbose -v N/A N/A N/A self _git_custom_command N/A git remote %s update %s N/A name v expect_stderr True N/A git_fetch N/A N/A self name options N/A N/A N/A N/A N/A N/A self _git_custom_command N/A git fetch %s %s N/A options name expect_stderr True N/A git_get_remote_url N/A N/A self name N/A N/A N/A We need to know, where to clone from, if a remote is
        requested
         N/A N/A out err N/A N/A self _git_custom_command N/A git config --get remote.%s.url name N/A N/A N/A out rstrip linesep N/A git_get_branch_commits N/A N/A self branch limit stop value N/A None None None N/A N/A Return GitPython's commits for the branch

        Pretty much similar to what 'git log <branch>' does.
        It is a generator which returns top commits first

        Parameters
        ----------
        branch: str
        limit: None | 'left-only', optional
          Limit which commits to report.  If None -- all commits (merged or not),
          if 'left-only' -- only the commits from the left side of the tree upon merges
        stop: str, optional
          hexsha of the commit at which stop reporting (matched one is not reported either)
        value: None | 'hexsha', optional
          What to yield.  If None - entire commit object is yielded, if 'hexsha' only its hexsha
         N/A fvalue N/A N/A None hexsha N/A N/A N/A x N/A x N/A N/A N/A x N/A N/A x hexsha N/A value N/A N/A limit N/A gen N/A N/A N/A N/A N/A co N/A N/A N/A N/A self repo branches N/A branch commit N/A N/A co N/A co_ N/A N/A co traverse N/A N/A N/A co_ N/A N/A N/A N/A limit left-only N/A gen N/A N/A N/A N/A N/A co N/A N/A N/A N/A self repo branches N/A branch commit N/A co N/A N/A N/A co N/A co N/A N/A co parents N/A N/A co parents N/A 0 None N/A N/A N/A N/A ValueError limit N/A c N/A gen N/A N/A N/A stop N/A N/A c hexsha stop N/A N/A N/A N/A N/A fvalue c N/A git_pull N/A N/A self name options N/A N/A N/A N/A N/A N/A self _git_custom_command N/A git pull %s %s N/A options name expect_stderr True N/A git_push N/A N/A self name options N/A N/A N/A N/A N/A N/A self _git_custom_command N/A git push %s %s N/A options name expect_stderr True N/A git_checkout N/A N/A self name options N/A N/A N/A N/A N/A N/A self _git_custom_command N/A git checkout %s %s N/A options name expect_stderr True N/A git_merge N/A N/A self name options msg N/A N/A None kwargs N/A N/A msg N/A N/A options N/A options N/A -m msg N/A N/A N/A self _git_custom_command N/A N/A N/A git merge options N/A name kwargs N/A git_remove_branch N/A N/A self branch N/A N/A N/A N/A N/A self _git_custom_command N/A git branch -D %s branch N/A git_ls_remote N/A N/A self remote options N/A None N/A N/A N/A N/A self _git_custom_command N/A git ls-remote %s %s N/A N/A N/A options None options remote N/A dirty N/A N/A self N/A N/A N/A Returns true if there is uncommitted changes or files not known to index N/A N/A N/A N/A self repo is_dirty untracked_files True N/A property gc N/A N/A self allow_background auto N/A False False N/A N/A Perform house keeping (garbage collection, repacking) N/A cmd_options N/A git N/A N/A allow_background N/A N/A cmd_options N/A -c gc.autodetach=0 N/A cmd_options N/A gc --aggressive N/A auto N/A N/A cmd_options N/A --auto N/A N/A N/A self _git_custom_command cmd_options N/A N/A