o
    ﯪg"                  
   @   s  g d Z dZddlmZmZmZmZmZmZm	Z	 er ddl
mZ ddlZddlmZ ddlmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z% ddl&m'Z' zdd	l(m)Z) dd
l*m+Z+ ddl,m-Z-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3m4Z4m5Z5m6Z6m7Z7 ddl8m9Z9m:Z:m;Z;m<Z<m=Z=m>Z>m?Z?m@Z@mAZA ddlBmCZCmDZDmEZEmFZFmGZGmHZH ddlImJZJmKZK ddlLmMZM ddlNmOZO ddlPmQZQmRZRmSZSmTZT ddlUmVZVmWZWmZmXZXmYZYmZZZm[Z[ ddl\m]Z]m^Z^m_Z_m`Z`maZambZb W n ey Zc zeddecjejfecf ecdZc[cww degdegddfddZhdegdefddZies#[[eiZjdakd"dee' ddfdd Zlzel  W dS  emyL Zc zedd!nececdZc[cww )#)NActorAmbiguousObjectNameBadName	BadObjectBadObjectTypeBaseIndexEntryBlob
BlobFilterBlockingLockFile
CacheErrorCheckoutErrorCommandErrorCommitDiffDiffConstants	DiffIndexDiffable	FetchInfoGitGitCmdObjectDBGitCommandErrorGitCommandNotFoundGitConfigParserGitDBGitErrorHEADHeadHookExecutionErrorINDEX
IndexEntry	IndexFileIndexObjectInvalidDBRootInvalidGitRepositoryErrorListLockFile	NULL_TREENoSuchPathErrorODBErrorObjectOptional
ParseErrorPathLikePushInfoRefLogRefLogEntry	ReferenceRemoteRemoteProgressRemoteReferenceRepoRepositoryDirtyError
RootModuleRootUpdateProgressSequence	StageTypeStats	SubmoduleSymbolicReferenceTYPE_CHECKINGTag	TagObjectTagReferenceTreeTreeModifierTupleUnionUnmergedEntriesErrorUnsafeOptionErrorUnsafeProtocolErrorUnsupportedOperationUpdateProgressWorkTreeRepositoryUnsupportedrefreshremove_password_if_presentrmtreesafe_decode
to_hex_shaz3.1.44    )Anyr#   r)   r7   r<   rB   rC   )
ModuleTypeN)rN   )r   r   r   r   r
   r   r   r   r   r   r   r!   r"   r&   r'   r*   r4   rD   rE   rF   rG   rI   )r+   )rM   )r   )r   r   r    r(   r5   r6   r:   r>   r@   rA   rH   )	r   r   r-   r.   r/   r2   r;   r=   r?   )r   r%   r   r   r   r   )r   r   )r   )r3   )r   r,   r0   r1   )r   r   r   r   r   r8   util)r   r	   r$   r9   rK   rL   z%s: %smessagefullnamereturnrQ   c                 C   s"   dd l }tj| tdd ||S )NrO      )
stacklevel)	importlibwarningswarnDeprecationWarningimport_module)rS   rT   rX    r]   H/var/www/html/chatdoc2/venv/lib/python3.10/site-packages/git/__init__.py_warned_import   s   
r_   namec              
   C   s   | dkr
t dddS h ddfh ddffD ]#\}}| |vrq| d	|  }t t d	|  d
| d| d|d  S tdtd| )NrR   aO  The expression `git.util` and the import `from git import util` actually reference git.index.util, and not the git.util module accessed in `from git.util import XYZ` or `sys.modules["git.util"]`. This potentially confusing behavior is currently preserved for compatibility, but may be changed in the future and should not be relied on.zgit.index.util)rT   >   logtagheadsymbolic	referencezgit.refs>   funtypbasez	git.index.z is a private alias of z' and subject to immediate removal. Use z	 instead.zmodule z has no attribute )r_   __name__AttributeError)r`   namesprefixrT   r]   r]   r^   _getattr   s$   



rn   pathc                 C   s(   da tj| ds
dS t sdS da dS )a  Convenience method for setting the git executable path.

    :param path:
        Optional path to the Git executable. If not absolute, it is resolved
        immediately, relative to the current directory.

    :note:
        The `path` parameter is usually omitted and cannot be used to specify a custom
        command whose location is looked up in a path search on each call. See
        :meth:`Git.refresh <git.cmd.Git.refresh>` for details on how to achieve this.

    :note:
        This calls :meth:`Git.refresh <git.cmd.Git.refresh>` and sets other global
        configuration according to the effect of doing so. As such, this function should
        usually be used instead of using :meth:`Git.refresh <git.cmd.Git.refresh>` or
        :meth:`FetchInfo.refresh <git.remote.FetchInfo.refresh>` directly.

    :note:
        This function is called automatically, with no arguments, at import time.
    Fro   NT)GIT_OKr   rJ   r   rp   r]   r]   r^   rJ     s   rJ   zFailed to initialize: {0})N)o__all____version__typingrP   r#   r)   r7   r<   rB   rC   typesrQ   rY   
gitdb.utilrN   git.excr   r   r   r   r
   r   r   r   r   r   r   r!   r"   r&   r'   r*   r4   rD   rE   rF   rG   rI   	git.typesr+   
git.compatrM   
git.configr   git.objectsr   r   r    r(   r5   r6   r:   r>   r@   rA   rH   git.refsr   r   r-   r.   r/   r2   r;   r=   r?   git.diffr   r%   r   r   r   r   git.dbr   r   git.cmdr   git.repor3   
git.remoter   r,   r0   r1   	git.indexr   r   r   r   r8   rR   git.utilr   r	   r$   r9   rK   rL   _excImportError	__class__rj   strr_   rn   __getattr__rq   rJ   	Exceptionformatr]   r]   r]   r^   <module>   sL   Q$`4, $$ 