§
    ÎÑßj'¾  ã            	       óà  — U d dl Z g d¢Ze j        dk    re                     d¦  «         d dlmZ d dlZd dlmZ d dl	Z	d dl
Z
d dlZd dlmZ d dlmZ d dlZd dlZd dlZd dlZd dlZd dlZd dlmZmZ d dlZd d	lmZmZmZmZmZm Z m!Z!m"Z"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/m0Z0m1Z1m2Z2m3Z3m4Z4m5Z5m6Z6m7Z7 e2rd dl8m9Z9 d dl:m;Z;m<Z< d dl=m>Z> d dl?m@Z@ d dlAmBZBmCZCmDZDmEZEmFZFmGZGmHZHmIZImJZJ  e4de5d         d¬¦  «        ZK e4dd¬¦  «        ZL e
jM        eN¦  «        ZOdePdeQdeQfd„ZRdePdeQdeQfd„ZS eSdd¦  «        ZT eSdd¦  «        ZU e4d¦  «        ZVde(d eVf         de(d eVf         fd!„ZWejX        d"eFde*eFddf         fd#„¦   «         ZYejX        dePd$ePde*d%         fd&„¦   «         ZZd'eFddfd(„Z[d'eFddfd)„Z\dvd+e'd,e'd-e]de]fd.„Z^d/eFd0eFdeFfd1„Z_e j        dk    rd'eFdePfd2„Z`d'eFdePfd3„Zae`Zbn
d'eFdePfd4„ZaeaZbd/eFd0eFdeFfd5„Zcd'eFdeQfd6„Zdd7eFd'eFdePfd8„Zedwd'eFd:eQdeQfd;„Zfde0eP         fd<„Zgdxd=ePd'e.eF         de-eP         fd>„Zhdyd?e.eP         d'ePd@eQdePfdA„Zi ejj        dB¦  «        dC„ d9f ejj        dD¦  «        eid9f ejj        dE¦  «        eid9f ejj        dFejk        ¦  «        dG„ df ejj        dH¦  «        dI„ d9ffZle1e1e/eP         e(d ePf         eQf         d f         emdJ<   dyd'ePd@eQdePfdK„Zn ejj        dL¦  «        Zod'eFdePfdM„Zpi Zqe)ePe.eQ         f         emdN<   dOePdeQfdP„Zre7dOddeEd9         fdQ„¦   «         Zse7dOeFdeQfdR„¦   «         ZsdOe5deFf         deQfdS„ZsdePfdT„ZtdUe5dV         dWe%ddfdX„Zue7dzd0dd@eQddfdY„¦   «         Zve7dzd0eFd@eQde.eF         fdZ„¦   «         Zvdyd0e5deFf         d@eQde.eF         fd[„Zvd\e0eP         de-eP         fd]„Zw G d^„ d_¦  «        Zx G d`„ daex¦  «        Zy G db„ dc¦  «        Zz G dd„ d¦  «        Z{ G de„ df¦  «        Z| G dg„ dh¦  «        Z} G di„ dj¦  «        Z~ G dk„ dle~¦  «        Z G dm„ dne-eK         ¦  «        Z€eJ G do„ dpeG¦  «        ¦   «         Z� G dq„ dre‚¦  «        Zƒ G ds„ dteƒ¬u¦  «        Z„dS ){é    N)Ústream_copyÚ	join_pathÚto_native_path_linuxÚjoin_path_nativeÚStatsÚIndexFileSHA1WriterÚIterableObjÚIterableListÚBlockingLockFileÚLockFileÚActorÚget_user_idÚassure_directory_existsÚRemoteProgressÚCallableRemoteProgressÚrmtreeÚunbare_repoÚHIDE_WINDOWS_KNOWN_ERRORSÚwin32Úto_native_path_windows)Úabstractmethod)Úwraps)ÚPath)ÚurlsplitÚ
urlunsplit)	Ú	LazyMixinÚLockedFDÚ
bin_to_hexÚfile_contents_roÚfile_contents_ro_filepathÚ
hex_to_binÚmake_shaÚ
to_bin_shaÚ
to_hex_sha)ÚAnyÚAnyStrÚBinaryIOÚCallableÚDictÚ	GeneratorÚIOÚIteratorÚListÚOptionalÚPatternÚSequenceÚTupleÚTYPE_CHECKINGÚTypeÚTypeVarÚUnionÚcastÚoverload)ÚGit)ÚGitConfigParserÚSectionConstraint)ÚRemote)ÚRepo)	ÚFiles_TDÚHas_id_attributeÚHSH_TDÚLiteralÚPathLikeÚProtocolÚSupportsIndexÚTotal_TDÚruntime_checkableÚT_IterableObj)r	   r>   T)ÚboundÚ	covariantÚT_Actorr   )rG   ÚnameÚdefaultÚreturnc                 ó&  — 	 t           j        |          }n# t          $ r |cY S w xY wt                               d| ¦  «         |                     ¦   «                              ¦   «         }|dv rdS |dv rdS t                               d| ||¦  «         |S )z…Read a boolean flag from an environment variable.

    :return:
        The flag, or the `default` value if absent or ambiguous.
    zlThe %s environment variable is deprecated. Its effect has never been documented and changes without warning.>   Ú Ú0ÚnoÚfalseF>   Ú1ÚyesÚtrueTz-%s has unrecognized value %r, treating as %r.)ÚosÚenvironÚKeyErrorÚ_loggerÚwarningÚstripÚlower)rJ   rK   ÚvalueÚadjusted_values       ú</opt/saltstack/salt/lib/python3.11/site-packages/git/util.pyÚ_read_env_flagr_   u   s³   € ðÝ”
˜4Ô ˆˆøÝð ð ð Øˆˆˆðøøøõ ‡O‚OØvØñô ð ð
 —[’[‘]”]×(Ò(Ñ*Ô*€NàÐ1Ð1Ð1ØˆuØÐ-Ð-Ð-ØˆtÝ‡O‚OÐCÀTÈ5ÐRYÑZÔZÐZØ€Ns   ‚ •$£$c                 óB   — t           j        dk    ot          | |¦  «        S )a  Read a boolean flag from an environment variable on Windows.

    :return:
        On Windows, the flag, or the `default` value if absent or ambiguous.
        On all other operating systems, ``False``.

    :note:
        This only accesses the environment on Windows.
    r   )ÚsysÚplatformr_   )rJ   rK   s     r^   Ú_read_win_env_flagrc   �   s    € õ Œ<˜7Ò"ÐD¥~°d¸GÑ'DÔ'DÐDó    r   ÚHIDE_WINDOWS_FREEZE_ERRORSÚTÚfunc.c           	      ó|   ‡ ‡— ddl mŠ t          ‰ ¦  «        dddt          dt          dt          fˆˆ fd„¦   «         }|S )	ztMethods with this decorator raise :exc:`~git.exc.InvalidGitRepositoryError` if
    they encounter a bare repository.é   )ÚInvalidGitRepositoryErrorÚselfr;   ÚargsÚkwargsrL   c                 óZ   •— | j         j        r ‰d‰j        z  ¦  «        ‚ ‰| g|¢R i |¤ŽS )Nz/Method '%s' cannot operate on bare repositories)ÚrepoÚbareÚ__name__)rk   rl   rm   rj   rg   s      €€r^   Úwrapperzunbare_repo.<locals>.wrapper­   sK   ø€ àŒ9Œ>ð 	oØ+Ð+Ð,]Ð`dÔ`mÑ,mÑnÔnÐnàˆt�DÐ*˜4Ð*Ð*Ð* 6Ð*Ð*Ð*rd   )Úexcrj   r   r%   rf   )rg   rr   rj   s   ` @r^   r   r   §   sn   øø€ ð /Ð.Ð.Ð.Ð.Ð.å
ˆ4�[„[ð+�hð +¥sð +µcð +½að +ð +ð +ð +ð +ð +ñ „[ð+ð €Nrd   Únew_dirc              #   ó¼   K  — t          j        ¦   «         }t          j        | ¦  «         	 | V — t          j        |¦  «         dS # t          j        |¦  «         w xY w)záContext manager to temporarily change directory.

    This is similar to :func:`contextlib.chdir` introduced in Python 3.11, but the
    context manager object returned by a single call to this function is not reentrant.
    N)rU   ÚgetcwdÚchdir)rt   Úold_dirs     r^   Úcwdry   ¹   s]   è è € õ Œi‰kŒk€GÝ„HˆWÑÔÐðØˆˆˆå
Œ�ÑÔÐÐÐø�Œ�ÑÔÐÐøøøs   «A ÁAr\   )NNNc              #   óâ   K  — t          j        | ¦  «        }|t           j        | <   	 dV — |€t           j        | = dS |t           j        | <   dS # |€t           j        | = n|t           j        | <   w xY w)z=Context manager to temporarily patch an environment variable.N)rU   ÚgetenvrV   )rJ   r\   Ú	old_values      r^   Ú	patch_envr}   È   s…   è è € õ ”	˜$‘”€IØ…B„JˆtÑð)ØˆˆˆàÐÝ”
˜4Ð Ð Ð à(�BŒJ�tÑÐÐøð ÐÝ”
˜4Ð Ð à(�BŒJ�tÑÐ(Ð(Ð(Ð(s   §A Á!A.Úpathc                 ó*  — dt           t          gt          f         dt          dt          ddfd„}t          j        dk    rt          j        | ¦  «         dS t          j        dk    rt          j        | |¬	¦  «         dS t          j        | |¬
¦  «         dS )zëRemove the given directory tree recursively.

    :note:
        We use :func:`shutil.rmtree` but adjust its behaviour to see whether files that
        couldn't be deleted are read-only. Windows will not remove them in that case.
    Úfunctionr~   Ú_excinforL   Nc                 óº   — t          j        |t          j        ¦  «         	  | |¦  «         dS # t          $ r"}t
          rddlm}  |d|› �¦  «        |‚‚ d}~ww xY w)zuCallback for :func:`shutil.rmtree`.

        This works as either a ``onexc`` or ``onerror`` style callback.
        r   )ÚSkipTestz%FIXME: fails with: PermissionError
  N)rU   ÚchmodÚstatÚS_IWUSRÚPermissionErrorr   Úunittestrƒ   )r€   r~   r�   Úexrƒ   s        r^   Úhandlerzrmtree.<locals>.handlerÞ   s‡   € õ 	Œ�•t”|Ñ$Ô$Ð$ð	ØˆH�T‰NŒNˆNˆNˆNøÝð 	ð 	ð 	Ý(ð VØ-Ð-Ð-Ð-Ð-Ð-à�hÐLÈÐLÐLÑMÔMÐSUÐUØøøøøð	øøøs   ¡. ®
A¸AÁAr   )é   é   )Úonexc)Úonerror)r(   Ústrr%   ra   rb   Úshutilr   Úversion_info)r~   rŠ   s     r^   r   r   Ö   s¦   € ð�(¥C 5­# :Ô.ð µcð ÅSð ÈTð ð ð ð õ" „|�wÒÐÝŒ�dÑÔÐÐÐÝ	Ô	˜WÒ	$Ð	$ÝŒ�d 'Ð*Ñ*Ô*Ð*Ð*Ð*åŒ�d GÐ,Ñ,Ô,Ð,Ð,Ð,rd   c                 ó¤   — t          j        | ¦  «        r;t          j        dk    rt	          j        | d¦  «         t	          j        | ¦  «         dS dS )zWEnsure file deleted also on *Windows* where read-only files need special
    treatment.r   iÿ  N)ÚospÚisfilera   rb   rU   r„   Úremove©r~   s    r^   Úrmfiler—   ÷   sP   € õ „z�$ÑÔð ÝŒ<˜7Ò"Ð"ÝŒH�T˜5Ñ!Ô!Ð!Ý
Œ	�$‰Œˆˆˆðð rd   é   ÚsourceÚdestinationÚ
chunk_sizec                 ó®   — d}	 |                       |¦  «        }|                     |¦  «         |t          |¦  «        z  }t          |¦  «        |k     rnŒQ|S )z›Copy all data from the `source` stream into the `destination` stream in chunks
    of size `chunk_size`.

    :return:
        Number of bytes written
    r   )ÚreadÚwriteÚlen)r™   rš   r›   ÚbrÚchunks        r^   r   r      sc   € ð 
€BðØ—’˜JÑ'Ô'ˆØ×Ò˜%Ñ Ô Ð Ø
�c�%‰jŒjÑˆÝˆu‰:Œ:˜
Ò"Ð"Øðð €Ird   ÚaÚpc                 óþ   — t          j        | ¦  «        }|D ]e}t          j        |¦  «        }|sŒ|                     d¦  «        r||dd…         z  }Œ<|dk    s|                     d¦  «        r||z  }Œ]|d|z   z  }Œf|S )zmJoin path tokens together similar to osp.join, but always use ``/`` instead of
    possibly ``\`` on Windows.ú/ri   NrN   )rU   ÚfspathÚ
startswithÚendswith)r¢   r£   r~   Úbs       r^   r   r     s—   € õ Œ9�Q‰<Œ<€DØð 	ð 	ˆÝŒI�a‰LŒLˆØð 	ØØ�<Š<˜ÑÔð 	Ø�A�a�b�b”E‰MˆDˆDØ�RŠZˆZ˜4Ÿ=š=¨Ñ-Ô-ˆZØ�A‰IˆDˆDà�C˜!‘G‰OˆDˆDà€Krd   c                 óV   — t          j        | ¦  «        } |                      dd¦  «        S )Nr¥   ú\©rU   r¦   Úreplacer–   s    r^   r   r   &  s#   € ÝŒy˜‰ŒˆØ�|Š|˜C Ñ&Ô&Ð&rd   c                 óV   — t          j        | ¦  «        } |                      dd¦  «        S )Nr«   r¥   r¬   r–   s    r^   r   r   *  s#   € ÝŒy˜‰ŒˆØ�|Š|˜D #Ñ&Ô&Ð&rd   c                 ó*   — t          j        | ¦  «        S ©N)rU   r¦   r–   s    r^   r   r   1  s   € ÝŒy˜‰ŒÐrd   c                 ó6   — t          t          | g|¢R Ž ¦  «        S )z°Like :func:`join_path`, but makes sure an OS native path is returned.

    This is only needed to play it safe on Windows and to ensure nice paths that only
    use ``\``.
    )Úto_native_pathr   )r¢   r£   s     r^   r   r   7  s"   € õ �) AÐ*¨Ð*Ð*Ð*Ñ+Ô+Ð+rd   c                 ó
  — t          j        t          j        | ¦  «        ¦  «        \  }}t          j        €t          j        fnt          j        t          j        f}|                     |¦  «        p|                     |¦  «        S )a�  Whether ``path`` has a root, including one encoded in a UNC drive.

    On Windows, ``\directory`` is rooted on the current drive without being
    absolute, while ``C:\directory`` has both a drive and a root. In contrast,
    ``directory`` and the drive-relative ``C:directory`` have no root.
    UNC paths are rooted: ``\\server\share`` stores the share in the drive
    returned by :func:`os.path.splitdrive`, while ``\\server\share\directory``
    additionally has a rooted tail.
    On POSIX, which has no drive concept, this simply distinguishes absolute
    paths such as ``/directory`` from relative paths such as ``directory``.
    )r“   Ú
splitdriverU   r¦   ÚaltsepÚsepr§   )r~   ÚdriveÚtailÚ
separatorss       r^   Ú_is_path_rootedrº   @  sa   € õ ”.¥¤¨4¡¤Ñ1Ô1�K€Eˆ4Ý œiÐ/•"”&��µb´f½b¼iÐ5H€JØ�?Š?˜:Ñ&Ô&ÐF¨%×*:Ò*:¸:Ñ*FÔ*FÐFrd   Úrootc                 ó  — t          j        |¦  «        }|s|S t          j        |¦  «        \  }}t	          |¦  «        }|r|st          d|z  ¦  «        ‚t          j        t          j        | ¦  «        ¦  «        }t          j        t          j        ||¦  «        ¦  «        }	 t          j        ||g¦  «        }n(# t
          $ r}	t          d|›d|›�¦  «        |	‚d}	~	ww xY w||k    rt          d|›d|›�¦  «        ‚t          t          j
        ||¦  «        ¦  «        }
t           j        €t           j        fnt           j        t           j        f}|                     |¦  «        r |
dk    r|
                     d¦  «        s|
dz  }
|
S )a^  Return a normalized Git-style path confined to ``root``.

    A Windows path such as ``\directory`` is rooted but not absolute. Resolve it
    against the drive of ``root`` rather than treating it as relative to ``root``.
    Drive-relative paths such as ``C:directory`` are rejected because their meaning
    depends on process-global per-drive state.

    For example, with ``root`` set to ``C:\repo`` on Windows:

    * ``directory\file`` -> ``directory/file``
    * ``directory\`` -> ``directory/``
    * ``C:\repo\directory\file`` -> ``directory/file``
    * ``\repo\directory\file`` -> ``directory/file``
    * ``C:directory\file`` -> :exc:`ValueError`
    * ``C:\other\file`` -> :exc:`ValueError`

    On POSIX, ``/repo/directory/file`` under ``/repo`` similarly becomes
    ``directory/file``. A trailing separator is preserved as a Git-style ``/``.
    z'Drive-relative path %r is not supportedzPath z is not in repository at Nú.r¥   )rU   r¦   r“   r´   rº   Ú
ValueErrorÚabspathÚjoinÚ
commonpathr   Úrelpathrµ   r¶   r¨   )r»   r~   Úpath_strr·   Ú_tailÚrootedÚroot_absÚpath_absÚcommon_pathÚeÚrelative_pathr¹   s               r^   Ú_to_relative_pathrË   Q  s’  € õ( Œy˜‰Œ€HØð Øˆå”> (Ñ+Ô+�L€Eˆ5Ý˜XÑ&Ô&€FØð O�Vð OÝÐBÀXÑMÑNÔNÐNåŒ{�2œ9 T™?œ?Ñ+Ô+€HÝŒ{�3œ8 H¨hÑ7Ô7Ñ8Ô8€Hð]Ý”n h°Ð%9Ñ:Ô:ˆˆøÝð ]ð ]ð ]ÝˆjÀÀÀÈ8È8ÐTÑUÔUÐ[\Ð\øøøøð]øøøà�hÒÐÝˆjÀÀÀÈ8È8ÐTÑUÔUÐUå(­¬°X¸xÑ)HÔ)HÑIÔI€MÝ œiÐ/•"”&��µb´f½b¼iÐ5H€JØ×Ò˜Ñ$Ô$ð ¨¸#Ò)=Ð)=Àm×F\ÒF\Ð]`ÑFaÔFaÐ)=Ø˜ÑˆØÐs   Â#B: Â:
CÃCÃCFÚis_filec                 óŠ   — |rt          j        | ¦  «        } t          j        | ¦  «        st          j        | d¬¦  «         dS dS )a$  Make sure that the directory pointed to by path exists.

    :param is_file:
        If ``True``, `path` is assumed to be a file and handled correctly.
        Otherwise it must be a directory.

    :return:
        ``True`` if the directory was created, ``False`` if it already existed.
    T)Úexist_okF)r“   ÚdirnameÚisdirrU   Úmakedirs)r~   rÌ   s     r^   r   r   ~  sJ   € ð ð !ÝŒ{˜4Ñ Ô ˆåŒ9�T‰?Œ?ð Ý
Œ�D 4Ð(Ñ(Ô(Ð(ØˆtØˆ5rd   c                  óÚ   — t           j                             dd ¦  «        } | r6t          d„ |                      t           j        ¦  «        D ¦   «         ¦  «        S t          j        dk    rdS dS )NÚPATHEXTc              3   ó>   K  — | ]}|                      ¦   «         V — Œd S r°   )Úupper)Ú.0r£   s     r^   ú	<genexpr>z&_get_exe_extensions.<locals>.<genexpr>”  s*   è è € ÐBÐB 1�Q—W’W‘Y”YÐBÐBÐBÐBÐBÐBrd   r   )z.BATz.COMz.EXE© )rU   rV   ÚgetÚtupleÚsplitÚpathsepra   rb   )rÓ   s    r^   Ú_get_exe_extensionsrÝ   ‘  sb   € ÝŒj�nŠn˜Y¨Ñ-Ô-€GØð ÝÐBÐB¨¯ªµb´jÑ(AÔ(AÐBÑBÔBÑBÔBÐBÝ	Œ˜Ò	 Ð	 Ø'Ð'àˆrrd   Úprogramc                 ó¤  ‡‡— t          ¦   «         Šdt          dt          fˆfd„}g }|st          j        d         }t          j        |¦  «                             t          j        ¦  «        D ]c}|                     d¦  «        }|rJt          j
        || ¦  «        Š‰gˆfd„‰D ¦   «         z   D ]"} ||¦  «        r|                     |¦  «         Œ#Œd|S )a6  Perform a path search to assist :func:`is_cygwin_git`.

    This is not robust for general use. It is an implementation detail of
    :func:`is_cygwin_git`. When a search following all shell rules is needed,
    :func:`shutil.which` can be used instead.

    :note:
        Neither this function nor :func:`shutil.which` will predict the effect of an
        executable search on a native Windows system due to a :class:`subprocess.Popen`
        call without ``shell=True``, because shell and non-shell executable search on
        Windows differ considerably.
    ÚfpathrL   c                 óÈ   •‡ — t          j        ‰ ¦  «        oLt          j        ‰ t          j        ¦  «        o-t
          j        dk    p‰ pt          ˆ fd„‰D ¦   «         ¦  «        S )Nr   c              3   óf   •K  — | ]+}‰                      ¦   «                              |¦  «        V — Œ,d S r°   )rÕ   r¨   )rÖ   Úextrà   s     €r^   r×   z,py_where.<locals>.is_exec.<locals>.<genexpr>°  s;   øè è € ÐBwÐBwÐcfÀ5Ç;Â;Á=Ä=×CYÒCYÐZ]ÑC^ÔC^ÐBwÐBwÐBwÐBwÐBwÐBwrd   )r“   r”   rU   ÚaccessÚX_OKra   rb   Úany)rà   Úwinprog_extss   `€r^   Úis_execzpy_where.<locals>.is_exec«  sh   øø€ åŒJ�uÑÔð Ý”	˜%¥¤Ñ)Ô)ðõ ” Ò'Ðw¨|Ð+;Ðw½sÐBwÐBwÐBwÐBwÐjvÐBwÑBwÔBwÑ?wÔ?wð		
rd   ÚPATHú"c                 ó   •— g | ]}‰›|›�‘Œ	S rØ   rØ   )rÖ   rÉ   Úexe_paths     €r^   ú
<listcomp>zpy_where.<locals>.<listcomp>»  s"   ø€ Ð"PÐ"PÐ"P¸a¨X¨X°q°qÐ#9Ð"PÐ"PÐ"Prd   )rÝ   r�   ÚboolrU   rV   r¦   rÛ   rÜ   rZ   r“   rÀ   Úappend)rÞ   r~   rè   ÚprogsÚfolderÚfrì   rç   s         @@r^   Úpy_whereró   ›  sú   øø€ õ 'Ñ(Ô(€Lð
•sð 
�tð 
ð 
ð 
ð 
ð 
ð 
ð €EØð "ÝŒz˜&Ô!ˆÝ”)˜D‘/”/×'Ò'­¬
Ñ3Ô3ð $ð $ˆØ—’˜cÑ"Ô"ˆØð 	$Ý”x ¨Ñ0Ô0ˆHØ�ZÐ"PÐ"PÐ"PÐ"PÀ<Ð"PÑ"PÔ"PÑPð $ð $�Ø�7˜1‘:”:ð $Ø—L’L ‘O”O�OøøØ€Lrd   r·   Úexpand_varsc                 óŽ  — t          j        |¦  «        r| s|}nƒ|o;t          j        |r&t          j        t          j        |¦  «        ¦  «        n|¦  «        }t          j        |¦  «        r| r|}n,t          |¦  «        }n| rd|                      ¦   «         ›d|›�}t          j        |¦  «        }| 	                    dd¦  «        S )Nz/proc/cygdrive/r¥   r«   )
r“   ÚisabsÚnormpathÚ
expandvarsÚ
expanduserÚcygpathr[   rU   r¦   r­   )r·   r~   rô   r£   Úp_strs        r^   Ú
_cygexpathrü   Á  sÇ   € Ý
„y��„ð <˜uð <ð ˆˆàÐ`•S”\È+Ð"_¥#¤.µ´ÀÑ1EÔ1EÑ"FÔ"FÐ"FÐ[_Ñ`Ô`ˆÝŒ9�Q‰<Œ<ð 	<Øð à��å˜A‘J”J��Øð 	<ð 	<Ø*/¯+ª+©-¬-¨-¨-¸¸Ð;ˆAÝŒI�a‰LŒL€EØ�=Š=˜˜sÑ#Ô#Ð#rd   z*\\\\\?\\UNC\\([^\\]+)\\([^\\]+)(?:\\(.*))?c           	      ó@   — d| ›d|›d|                      dd¦  «        ›�S )Nú//r¥   r«   )r­   )ÚserverÚshareÚ	rest_paths      r^   ú<lambda>r  Ù  s,   € € ¸&¸&¸&À%À%À%È×IZÒIZÐ[_ÐadÑIeÔIeÐIeÐ*f€ rd   z\\\\\?\\(\w):[/\\](.*)z(\w):[/\\](.*)z	file:(.*)c                 ó   — | S r°   rØ   )r  s    r^   r  r  Þ  s   € ¸	€ rd   z(\w{2,}:.*)c                 ó   — | S r°   rØ   )Úurls    r^   r  r  ß  s   € ¨c€ rd   Ú_cygpath_parsersc                 óf  — t          j        | ¦  «        } |                      d¦  «        s‡t          D ]m\  }}}|                     | ¦  «        }|rP|t
          u r ||                     ¦   «         d|iŽ} n ||                     ¦   «         Ž } |rt          | |¬¦  «        }  nŒnt          d| |¬¦  «        } | S )zJUse :meth:`git.cmd.Git.polish_url` instead, that works on any environment.)z	/cygdriverþ   z/proc/cygdriverô   )rô   N)rU   r¦   r§   r  Úmatchrü   Úgroupsrú   )r~   rô   ÚregexÚparserÚrecurser  s         r^   rú   rú   ã  sÓ   € åŒ9�T‰?Œ?€Dà�?Š?Ð@ÑAÔAð CÝ&6ð 	Cð 	CÑ"ˆE�6˜7Ø—K’K Ñ%Ô%ˆEØð Ø�ZÐ'Ð'Ø!˜6 5§<¢<¡>¤>ÐK¸{ÐKÐK�D�Dà!˜6 5§<¢<¡>¤>Ð2�DØð BÝ" 4°[ÐAÑAÔA�DØ�ðõ ˜d D°kÐBÑBÔBˆDà€Krd   z(?:/proc)?/cygdrive/(\w)(/.*)?c                 óò   — t          j        | ¦  «        } t                               | ¦  «        }|r2|                     ¦   «         \  }}|                     ¦   «         ›d|pd›�} |                      dd¦  «        S )Nú:rN   r¥   r«   )rU   r¦   Ú_decygpath_regexr  r	  rÕ   r­   )r~   Úmr·   r  s       r^   Ú	decygpathr  û  sl   € ÝŒ9�T‰?Œ?€DÝ×Ò˜tÑ$Ô$€AØð :ØŸ8š8™:œ:ÑˆˆyØŸ+š+™-œ-˜-˜-¨¨°b¨Ð9ˆà�<Š<˜˜TÑ"Ô"Ð"rd   Ú_is_cygwin_cacheÚgit_executablec                 ó¾  — t                                | ¦  «        }|�€?d}	 t          j        | ¦  «        }|s-t	          | ¦  «        }|rt          j        |d         ¦  «        nd}t          j        |d¦  «        }t          |¦  «                             ¦   «         rt          j	        |t          j
        ¦  «        s*t                               d|› d�¦  «         |t           | <   |S t          j        |gt          j        d¬¦  «        }|                     ¦   «         \  }}d	|v }n2# t"          $ r%}t                               d
|¦  «         Y d }~nd }~ww xY w|t           | <   |S )NFr   rN   Úunamez&Failed checking if running in CYGWIN: z is not an executableT)ÚstdoutÚuniversal_newlinesÚCYGWINz/Failed checking if running in CYGWIN due to: %r)r  rÙ   r“   rÏ   ró   rÀ   r   rÌ   rU   rä   rå   rX   ÚdebugÚ
subprocessÚPopenÚPIPEÚcommunicateÚ	Exception)	r  Ú	is_cygwinÚgit_dirÚresÚ	uname_cmdÚprocessÚ	uname_outÚ_r‰   s	            r^   Ú_is_cygwin_gitr&  
  sm  € Ý ×$Ò$ ^Ñ4Ô4€IØÑØˆ	ð	QÝ”k .Ñ1Ô1ˆGØð =Ý˜~Ñ.Ô.�Ø14Ð<�#œ+ c¨!¤fÑ-Ô-Ð-¸"�õ œ ¨'Ñ2Ô2ˆIå˜‘O”O×+Ò+Ñ-Ô-ð !µ"´)¸IÅrÄwÑ2OÔ2Oð !Ý—’ÐgÀyÐgÐgÐgÑhÔhÐhØ3<Õ  Ñ0Ø Ð å Ô&¨	 {½:¼?Ð_cÐdÑdÔdˆGØ"×.Ò.Ñ0Ô0‰LˆI�qà  IÐ-ˆIˆIøÝð 	Qð 	Qð 	QÝ�MŠMÐKÈRÑPÔPÐPÐPÐPÐPÐPÐPøøøøð	Qøøøà+4Õ˜Ñ(àÐs   ¡CD! Ã#=D! Ä!
EÄ+EÅEc                 ó   — d S r°   rØ   ©r  s    r^   Úis_cygwin_gitr)  '  ó   € Ø;>¸3rd   c                 ó   — d S r°   rØ   r(  s    r^   r)  r)  +  s   € Ø58°Srd   c                 óº   — t                                dt          j        ›d| ›�¦  «         t          j        dk    rdS | €dS t	          t          | ¦  «        ¦  «        S )Nzsys.platform=z, git_executable=ÚcygwinF)rX   r  ra   rb   r&  r�   r(  s    r^   r)  r)  /  sZ   € å‡M‚MÐU¥#¤,ÐUÐUÀ>ÐUÐUÑVÔVÐVÝ
„|�xÒÐØˆuØ	Ð	Øˆuå�c .Ñ1Ô1Ñ2Ô2Ð2rd   c                  óT   — t          j        ¦   «         ›dt          j        ¦   «         ›�S )zM:return: String identifying the currently active system user as ``name@node``ú@)ÚgetpassÚgetuserrb   ÚnoderØ   rd   r^   r   r   :  s#   € å”oÑ'Ô'Ð'Ð'­¬©¬¨Ð9Ð9rd   Úproc)zsubprocess.Popen[Any]zGit.AutoInterruptrm   c                 ó    —  | j         di |¤Ž dS )zXWait for the process (clone, fetch, pull or push) and handle its errors
    accordingly.NrØ   )Úwait)r3  rm   s     r^   Úfinalize_processr6  ?  s"   € ð €D„IÐÐ�ÐÐÐÐÐrd   c                 ó   — d S r°   rØ   ©r£   rô   s     r^   Úexpand_pathr9  F  r*  rd   c                 ó   — d S r°   rØ   r8  s     r^   r9  r9  J  s	   € ð €Crd   c                 óD  — | €d S 	 t          | t          ¦  «        r|                      ¦   «         S t          j        t          j        | ¦  «        ¦  «        }|rt          j        |¦  «        }t          j        t          j	        |¦  «        ¦  «        S # t          $ r Y d S w xY wr°   )Ú
isinstancer   Úresolver“   rù   rU   r¦   rø   r÷   r¿   r  )r£   rô   Úexpanded_paths      r^   r9  r9  P  s›   € Ø€yØˆtðÝ�a�ÑÔð 	Ø—9’9‘;”;ÐÝœ¥r¤y°¡|¤|Ñ4Ô4ˆØð 	:ÝœN¨=Ñ9Ô9ˆMÝŒ|�CœK¨Ñ6Ô6Ñ7Ô7Ð7øÝð ð ð Øˆtˆtðøøøs   †(B ¯A!B Â
BÂBÚcmdlinec                 óþ  — g }t          | ¦  «        D �]i\  }}|                     |¦  «         |                     d¦  «        \  }}}|                     d¦  «        \  }}}	|rb|r`|                     ¦   «                              d¦  «        r9|                     ¦   «                              ¦   «         dk    r|›|›|›|›d�||<   Œ±	 t          |¦  «        }
|
j        €|
j        €ŒÐ|
j        �4|
 	                    |
j
                             |
j        d¦  «        ¬¦  «        }
|
j        �4|
 	                    |
j
                             |
j        d¦  «        ¬¦  «        }
t          |
¦  «        ||<   �ŒZ# t          $ r Y �Œgw xY w|S )	a  Redact credentials in URLs and HTTP Authorization extra headers in a command line.

    If nothing is found, this just returns the command line as-is.

    This should be used for every log line that print a command line, as well as
    exception messages.
    ú=r  z.extraheaderÚauthorizationz *****Nz*****)Únetloc)Ú	enumeraterï   Ú	partitionr[   r¨   rZ   r   ÚpasswordÚusernameÚ_replacerC  r­   r   r¾   )r?  Únew_cmdlineÚindexÚto_parseÚ
config_keyÚ	separatorÚheaderÚheader_nameÚcolonr%  r  s              r^   Úremove_password_if_presentrQ  ^  s¥  € ð €KÝ$ WÑ-Ô-ð ñ ‰ˆˆxØ×Ò˜8Ñ$Ô$Ð$Ø(0×(:Ò(:¸3Ñ(?Ô(?Ñ%ˆ
�I˜vØ &× 0Ò 0°Ñ 5Ô 5Ñˆ�U˜Aàð	àð	ð × Ò Ñ"Ô"×+Ò+¨NÑ;Ô;ð	ð ×!Ò!Ñ#Ô#×)Ò)Ñ+Ô+¨Ò>Ð>à5?°ZÀÀÈKÈKÐY^ÐY^ÐY^Ð!_ˆK˜ÑØð	Ý˜8Ñ$Ô$ˆCàŒ|Ð#¨¬Ð(<ØàŒ|Ð'Ø—l’l¨#¬*×*<Ò*<¸S¼\È7Ñ*SÔ*S�lÑTÔT�ØŒ|Ð'Ø—l’l¨#¬*×*<Ò*<¸S¼\È7Ñ*SÔ*S�lÑTÔT�Ý!+¨C¡¤ˆK˜ÑÑøÝð 	ð 	ð 	à‰Hð	øøøð Ðs   ÃE,Ã"BE,Å,
E:Å9E:c                   óR  — e Zd ZU dZdZeed<   d„  ee¦  «        D ¦   «         \	  ZZ	Z
ZZZZZZee	z  Ze ZdZdZdZ ej        d¦  «        Z ej        d	¦  «        Zdd„Zded
ee         fd„Zd
ee gdf         fd„Z!de d
dfd„Z"	 	 ddede#e e$f         de#e e$df         de d
df
d„Z%dS )r   zÊHandler providing an interface to parse progress information emitted by
    :manpage:`git-push(1)` and :manpage:`git-fetch(1)` and to dispatch callbacks
    allowing subclasses to react to the progress.é	   Ú_num_op_codesc                 ó   — g | ]}d |z  ‘ŒS )ri   rØ   )rÖ   Úxs     r^   rí   zRemoteProgress.<listcomp>™  s   € Ð.Ð.Ð.�Aˆˆa‰Ð.Ð.Ð.rd   zdone.z, )Ú	_cur_lineÚ	_seen_opsÚerror_linesÚother_linesz%(remote: )?([\w\s]+):\s+()(\d+)()(.*)z2(remote: )?([\w\s]+):\s+(\d+)% \((\d+)/(\d+)\)(.*)rL   Nc                 ó>   — g | _         d | _        g | _        g | _        d S r°   )rX  rW  rY  rZ  ©rk   s    r^   Ú__init__zRemoteProgress.__init__©  s&   € Ø$&ˆŒØ(,ˆŒØ&(ˆÔØ&(ˆÔÐÐrd   Úlinec                 óÂ  — t          |t          ¦  «        r|                     d¦  «        }n|}|| _        | j                             d¦  «        r!| j                             | j        ¦  «         dS d\  }}| j                             |¦  «        }|€| j	                             |¦  «        }|s1|  
                    |¦  «         | j                             |¦  «         dS d}|                     ¦   «         \  }}}	}}}
|dk    r|| j        z  }n}|dk    r|| j        z  }nl|dk    r|| j        z  }n[|d	k    r|| j        z  }nJ|d
k    r|| j        z  }n9|dk    r|| j        z  }n(|dk    r|| j        z  }n|  
                    |¦  «         dS || j        vr$| j                             |¦  «         || j        z  }|
€d}
|
                     ¦   «         }
|
                     | j        ¦  «        r'|| j        z  }|
dt5          | j        ¦  «         …         }
|
                     | j        ¦  «        }
|                      ||ot;          |¦  «        |ot;          |¦  «        |
¦  «         dS )a*  Parse progress information from the given line as retrieved by
        :manpage:`git-push(1)` or :manpage:`git-fetch(1)`.

        - Lines that do not contain progress info are stored in :attr:`other_lines`.
        - Lines that seem to contain an error (i.e. start with ``error:`` or ``fatal:``)
          are stored in :attr:`error_lines`.

        The base implementation returns ``None``. Subclasses may return another
        value for compatibility with existing overrides, but callers should treat
        the return value as unspecified.
        zutf-8)zerror:zfatal:N)NNr   zCounting objectszCompressing objectszWriting objectszReceiving objectszResolving deltaszFinding sourceszChecking out filesrN   )r<  ÚbytesÚdecoderW  r§   rY  rï   Úre_op_relativer  Úre_op_absoluteÚline_droppedrZ  r	  ÚCOUNTINGÚCOMPRESSINGÚWRITINGÚ	RECEIVINGÚ	RESOLVINGÚFINDING_SOURCESÚCHECKING_OUTrX  ÚBEGINrZ   r¨   Ú
DONE_TOKENÚENDrŸ   ÚTOKEN_SEPARATORÚupdateÚfloat)rk   r^  Úline_strÚ	cur_countÚ	max_countr  Úop_codeÚ_remoteÚop_nameÚ_percentÚmessages              r^   Ú_parse_progress_linez#RemoteProgress._parse_progress_line¯  s¼  € õ" �d�EÑ"Ô"ð 	Ø—{’{ 7Ñ+Ô+ˆHˆHàˆHØ!ˆŒàŒ>×$Ò$Ð%9Ñ:Ô:ð 	ØÔ×#Ò# D¤NÑ3Ô3Ð3Ø�4à)Ñˆ	�9ØÔ#×)Ò)¨(Ñ3Ô3ˆØˆ=ØÔ'×-Ò-¨hÑ7Ô7ˆEàð 	Ø×Ò˜hÑ'Ô'Ð'ØÔ×#Ò# HÑ-Ô-Ð-Ø�4ð ˆØDIÇLÂLÁNÄNÑAˆ�˜( I¨y¸'ð Ð(Ò(Ð(Ø�t”}Ñ$ˆGˆGØÐ-Ò-Ð-Ø�tÔ'Ñ'ˆGˆGØÐ)Ò)Ð)Ø�t”|Ñ#ˆGˆGØÐ+Ò+Ð+Ø�t”~Ñ%ˆGˆGØÐ*Ò*Ð*Ø�t”~Ñ%ˆGˆGØÐ)Ò)Ð)Ø�tÔ+Ñ+ˆGˆGØÐ,Ò,Ð,Ø�tÔ(Ñ(ˆGˆGð ×Ò˜hÑ'Ô'Ð'ð �4ð ˜$œ.Ð(Ð(ØŒN×!Ò! 'Ñ*Ô*Ð*Ø�t”zÑ!ˆGð ˆ?ØˆGð —-’-‘/”/ˆØ×Ò˜DœOÑ,Ô,ð 	7Ø�t”xÑˆGØÐ5¥ T¤_Ñ!5Ô!5Ð 5Ð5Ô6ˆGà—-’- Ô 4Ñ5Ô5ˆà�ŠØØÐ*�% 	Ñ*Ô*ØÐ*�% 	Ñ*Ô*Øñ		
ô 	
ð 	
ð ˆtrd   c                 ó&   ‡ — dt           ddfˆ fd„}|S )zº
        :return:
            A progress handler suitable for :func:`~git.cmd.handle_process_output`,
            passing lines on to this progress handler in a suitable format.
        r^  rL   Nc                 óV   •— ‰                      |                      ¦   «         ¦  «         d S r°   )rz  Úrstrip)r^  rk   s    €r^   rŠ   z3RemoteProgress.new_message_handler.<locals>.handler  s%   ø€ Ø×%Ò% d§k¢k¡m¤mÑ4Ô4Ð4Ð4Ð4rd   )r&   )rk   rŠ   s   ` r^   Únew_message_handlerz"RemoteProgress.new_message_handler  s6   ø€ ð	5�&ð 	5 Tð 	5ð 	5ð 	5ð 	5ð 	5ð 	5ð
 ˆrd   c                 ó   — dS )zICalled whenever a line could not be understood and was therefore dropped.NrØ   )rk   r^  s     r^   rd  zRemoteProgress.line_dropped  s   € àˆrd   rN   ru  rs  rt  ry  c                 ó   — dS )aç  Called whenever the progress changes.

        :param op_code:
            Integer allowing to be compared against Operation IDs and stage IDs.

            Stage IDs are :const:`BEGIN` and :const:`END`. :const:`BEGIN` will only be
            set once for each Operation ID as well as :const:`END`. It may be that
            :const:`BEGIN` and :const:`END` are set at once in case only one progress
            message was emitted due to the speed of the operation. Between
            :const:`BEGIN` and :const:`END`, none of these flags will be set.

            Operation IDs are all held within the :const:`OP_MASK`. Only one Operation
            ID will be active per call.

        :param cur_count:
            Current absolute count of items.

        :param max_count:
            The maximum count of items we expect. It may be ``None`` in case there is no
            maximum number of items or if it is (yet) unknown.

        :param message:
            In case of the :const:`WRITING` operation, it contains the amount of bytes
            transferred. It may possibly be used for other purposes as well.

        :note:
            You may read the contents of the current line in
            :attr:`self._cur_line <_cur_line>`.
        NrØ   )rk   ru  rs  rt  ry  s        r^   rp  zRemoteProgress.update  s
   € ðH 	ˆrd   ©rL   N©NrN   )&rq   Ú
__module__Ú__qualname__Ú__doc__rT  ÚintÚ__annotations__Úrangerl  rn  re  rf  rg  rh  ri  rj  rk  Ú
STAGE_MASKÚOP_MASKrm  ro  Ú	__slots__ÚreÚcompilerc  rb  r]  r&   r.   Úobjectrz  r(   r�   r~  rd  r5   rq  rp  rØ   rd   r^   r   r   ‰  s¦  € € € € € € ð5ð 5ð €M�3ÐÐÑð 	/Ð.˜˜˜}Ñ-Ô-Ð.Ñ.Ô.ñ
ØØØØØØØØØà˜‘€JØˆk€Gà€JØ€Oð€Ið  �R”ZÐ HÑIÔI€NØ�R”ZÐ UÑVÔV€Nð)ð )ð )ð )ð\¨ð \°H¸VÔ4Dð \ð \ð \ð \ð| X¨s¨e°T¨kÔ%:ð ð ð ð ð ð ¨ð ð ð ð ð .2Øð$ð $àð$ð ˜˜e˜Ô$ð$ð ˜˜e TÐ)Ô*ð	$ð
 ð$ð 
ð$ð $ð $ð $ð $ð $rd   r   c                   óT   ‡ — e Zd ZdZdZdedef         ddfˆ fd„Zded	eddfd
„Zˆ xZ	S )r   a   A :class:`RemoteProgress` implementation forwarding updates to any callable.

    :note:
        Like direct instances of :class:`RemoteProgress`, instances of this
        :class:`CallableRemoteProgress` class are not themselves directly callable.
        Rather, instances of this class wrap a callable and forward to it. This should
        therefore not be confused with :class:`git.types.CallableProgress`.
    ©Ú	_callableÚfn.rL   Nc                 óV   •— || _         t          ¦   «                              ¦   «          d S r°   )r‘  Úsuperr]  )rk   r’  Ú	__class__s     €r^   r]  zCallableRemoteProgress.__init__R  s&   ø€ ØˆŒÝ‰Œ×ÒÑÔÐÐÐrd   rl   rm   c                 ó    —  | j         |i |¤Ž d S r°   r�  )rk   rl   rm   s      r^   rp  zCallableRemoteProgress.updateV  s   € ØˆŒ˜Ð' Ð'Ð'Ð'Ð'Ð'rd   )
rq   rƒ  r„  r…  r‹  r(   r%   r]  rp  Ú__classcell__©r•  s   @r^   r   r   F  sŽ   ø€ € € € € ðð ð €Ið˜8 C¨ HÔ-ð °$ð ð ð ð ð ð ð(˜Cð (¨3ð (°4ð (ð (ð (ð (ð (ð (ð (ð (rd   r   c                   óN   — e Zd Z ej        d¦  «        Zdededee         fd„Z	dS )Ú_DeprecatedActorNameEmailRegexz(.*) <(.*?)>Ú	_instanceÚ_ownerrL   c                 óH   — t          j        dt          d¬¦  «         | j        S )Na  Actor.name_email_regex is deprecated and will be removed in GitPython 4.0.0 because searching long malformed strings with it can take quadratic time. Use Actor.from_string() to parse actor identities, or Actor(name, email) when the fields are already separate.é   ©Ú
stacklevel)ÚwarningsÚwarnÚDeprecationWarningÚ_pattern)rk   r›  rœ  s      r^   Ú__get__z&_DeprecatedActorNameEmailRegex.__get__]  s3   € ÝŒðJõ Øð	
ñ 	
ô 	
ð 	
ð Œ}Ðrd   N)
rq   rƒ  r„  rŒ  r�  r¤  r%   r/   r�   r¥  rØ   rd   r^   rš  rš  Z  sR   € € € € € ØˆrŒz˜/Ñ*Ô*€Hð ð ¨cð °g¸c´lð ð ð ð ð ð rd   rš  c            
       ó~  — e Zd ZdZ e¦   «         ZdZdZdZdZ	dZ
dZdZdee         dee         d	d
fd„Zded	efd„Zded	efd„Zd	efd„Zd	efd„Zd	efd„Zedee         ded	efd„¦   «         ZeZe	 ddededed         d	d fd„¦   «         Ze	 dded         d	d fd„¦   «         Ze	 dded         d	d fd„¦   «         Z d
S )r   zµActors hold information about a person acting on the repository. They can be
    committers and authors or anything with a name and an email as mentioned in the git
    log entries.ÚGIT_AUTHOR_NAMEÚGIT_AUTHOR_EMAILÚGIT_COMMITTER_NAMEÚGIT_COMMITTER_EMAILrJ   Úemail©rJ   r«  rL   Nc                 ó"   — || _         || _        d S r°   r¬  )rk   rJ   r«  s      r^   r]  zActor.__init__|  s   € ØˆŒ	ØˆŒ
ˆ
ˆ
rd   Úotherc                 óB   — | j         |j         k    o| j        |j        k    S r°   r¬  ©rk   r®  s     r^   Ú__eq__zActor.__eq__€  s   € ØŒy˜EœJÒ&ÐD¨4¬:¸¼Ò+DÐDrd   c                 ó   — | |k     S r°   rØ   r°  s     r^   Ú__ne__zActor.__ne__ƒ  s   € Ø˜E’MÐ"Ð"rd   c                 ó8   — t          | j        | j        f¦  «        S r°   )ÚhashrJ   r«  r\  s    r^   Ú__hash__zActor.__hash__†  s   € Ý�T”Y ¤
Ð+Ñ,Ô,Ð,rd   c                 ó"   — | j         r| j         ndS r‚  )rJ   r\  s    r^   Ú__str__zActor.__str__‰  s   € Ø œIÐ-ˆtŒyˆy¨2Ð-rd   c                 ó(   — d| j         ›d| j        ›d�S )Nz<git.Actor "z <z>">r¬  r\  s    r^   Ú__repr__zActor.__repr__Œ  s   € € Ø*.¬)¨)¨)°T´Z°Z°ZÐ@Ð@rd   ÚclsÚstringc                 ó&  — |                      d¦  «        d         }|                     d¦  «        }|                     d|dz   ¦  «        }|dk    r7|dk    r1 | |d|…                              ¦   «         ||dz   |…         ¦  «        S  | |d¦  «        S )zêCreate an :class:`Actor` from a string.

        :param string:
            The string, which is expected to be in regular git format::

                John Doe <jdoe@example.com>

        :return:
            :class:`Actor`
        ú
r   ú<ú>ri   N)rE  Úfindr}  )r»  r¼  r^  Úleft_bracketÚright_brackets        r^   Úfrom_stringzActor.from_string�  s¢   € ð ×Ò Ñ%Ô% aÔ(ˆØ—y’y ‘~”~ˆØŸ	š	 # |°aÑ'7Ñ8Ô8ˆØ˜1ÒÐ °!Ò!3Ð!3Ø�3�t˜M˜\˜MÔ*×1Ò1Ñ3Ô3°T¸,ÈÑ:JÈ]Ð:ZÔ5[Ñ\Ô\Ð\ð ˆs�6˜4Ñ Ô Ð rd   Úenv_nameÚ	env_emailÚconfig_reader)Nr9   z"SectionConstraint[GitConfigParser]c                 óâ  ‡‡— t          dd¦  «        }d Šdt          fˆfd„Šdt          fˆfd„}d|| j        |fd|| j        ‰ffD ]©\  }}}}		 t          j        |         }
t          |||
¦  «         Œ,# t          $ rq |�C	 |                     d|¦  «        }
n# t          $ r  |	¦   «         }
Y nw xY wt          |||
¦  «         t          ||¦  «        st          || |	¦   «         ¦  «         Y Œ¦w xY w|S )NrN   rL   c                  ó(   •— ‰ st          ¦   «         Š ‰ S r°   )r   )Úuser_ids   €r^   Údefault_emailz(Actor._main_actor.<locals>.default_email°  s   ø€ àð (Ý%™-œ-�ØˆNrd   c                  óJ   •—  ‰ ¦   «                               d¦  «        d         S )Nr/  r   )rÛ   )rË  s   €r^   Údefault_namez'Actor._main_actor.<locals>.default_name¶  s"   ø€ Ø �=‘?”?×(Ò(¨Ñ-Ô-¨aÔ0Ð0rd   rJ   r«  Úuser)r   r�   Ú	conf_nameÚ
conf_emailrU   rV   ÚsetattrrW   rÙ   r  Úgetattr)r»  rÅ  rÆ  rÇ  ÚactorrÍ  ÚattrÚevarÚcvarrK   ÚvalrË  rÊ  s              @@r^   Ú_main_actorzActor._main_actor¦  sl  øø€ õ �b˜"‘”ˆØˆð	�sð 	ð 	ð 	ð 	ð 	ð 	ð	1�cð 	1ð 	1ð 	1ð 	1ð 	1ð 	1ð �X˜sœ}¨lÐ;Ø�i ¤°Ð?ð*
ð 	4ð 	4Ñ%ˆD�$˜˜gð4Ý”j Ô&�Ý˜˜t SÑ)Ô)Ð)Ð)øÝð 	4ð 	4ð 	4Ø Ð,ð(Ø+×/Ò/°¸Ñ=Ô=˜˜øÝ$ð (ð (ð (Ø%˜g™iœi˜˜˜ð(øøøå˜E 4¨Ñ-Ô-Ð-å˜u dÑ+Ô+ð 4Ý˜E 4¨¨©¬Ñ3Ô3Ð3øøð	4øøøð ˆs6   Á#A1Á1C,Á>BÂC,ÂB,Â)C,Â+B,Â,=C,Ã+C,c                 óD   — |                       | j        | j        |¦  «        S )aÑ  
        :return:
            :class:`Actor` instance corresponding to the configured committer. It
            behaves similar to the git implementation, such that the environment will
            override configuration values of `config_reader`. If no value is set at all,
            it will be generated.

        :param config_reader:
            ConfigReader to use to retrieve the values from in case they are not set in
            the environment.
        )rØ  Úenv_committer_nameÚenv_committer_email©r»  rÇ  s     r^   Ú	committerzActor.committerÎ  s!   € ð �Š˜sÔ5°sÔ7NÐP]Ñ^Ô^Ð^rd   c                 óD   — |                       | j        | j        |¦  «        S )z†Same as :meth:`committer`, but defines the main author. It may be specified
        in the environment, but defaults to the committer.)rØ  Úenv_author_nameÚenv_author_emailrÜ  s     r^   ÚauthorzActor.authorß  s    € ð �Š˜sÔ2°CÔ4HÈ-ÑXÔXÐXrd   r°   )!rq   rƒ  r„  r…  rš  Úname_email_regexrß  rà  rÚ  rÛ  rÏ  rÐ  r‹  r.   r�   r]  r%   rî   r±  r³  r†  r¶  r¸  rº  Úclassmethodr3   rI   rÄ  Ú_from_stringr5   rØ  rÝ  rá  rØ   rd   r^   r   r   h  sM  € € € € € ðð ð 6Ð5Ñ7Ô7Ðð (€OØ)ÐØ-ÐØ/Ðð €IØ€Jà!€Ið˜X cœ]ð °8¸C´=ð ÀTð ð ð ð ðE˜Cð E Dð Eð Eð Eð Eð#˜Cð # Dð #ð #ð #ð #ð-˜#ð -ð -ð -ð -ð.˜ð .ð .ð .ð .ðA˜#ð Að Að Að Að ð!˜˜gœð !°ð !¸ð !ð !ð !ñ „[ð!ð( €Làð
 _cð	%ð %àð%ð ð%ð ÐZÔ[ð	%ð
 
ð%ð %ð %ñ „[ð%ðN àcgð_ð _Ø!Ð"_Ô`ð_à	ð_ð _ð _ñ „[ð_ð  àcgðYð YØ!Ð"_Ô`ðYà	ðYð Yð Yñ „[ðYð Yð Yrd   c                   ó^   — e Zd ZdZdZdedeeef         ddfd„Z	e
dd	d
edd fd„¦   «         ZdS )r   aé  Represents stat information as presented by git at the end of a merge. It is
    created from the output of a diff operation.

    Example::

     c = Commit( sha1 )
     s = c.stats
     s.total         # full-stat-dict
     s.files         # dict( filepath : stat-dict )

    ``stat-dict``

    A dictionary with the following keys and values::

      deletions = number of deleted lines as int
      insertions = number of inserted lines as int
      lines = total number of lines changed as int, or deletions + insertions
      change_type = type of change as str, A|C|D|M|R|T|U|X|B

    ``full-stat-dict``

    In addition to the items in the stat-dict, it features additional information::

     files = number of changed files as int
    ©ÚtotalÚfilesrç  rè  rL   Nc                 ó"   — || _         || _        d S r°   ræ  )rk   rç  rè  s      r^   r]  zStats.__init__  s   € ØˆŒ
ØˆŒ
ˆ
ˆ
rd   ro   r<   Útextc                 ó  — dddddœi dœ}|                      ¦   «         D ]Ì}|                     d¦  «        \  }}}}|dk    rt          |¦  «        pd}	|dk    rt          |¦  «        pd}
|d         dxx         |	z  cc<   |d         dxx         |
z  cc<   |d         d	xx         |	|
z   z  cc<   |d         d
xx         dz  cc<   |	|
|	|
z   |dœ}||d
         |                     ¦   «         <   ŒÍt	          |d         |d
         ¦  «        S )z‘Create a :class:`Stats` object from output retrieved by
        :manpage:`git-diff(1)`.

        :return:
            :class:`git.Stats`
        r   )Ú
insertionsÚ	deletionsÚlinesrè  ræ  ú	ú-rç  rì  rí  rî  rè  ri   )rì  rí  rî  Úchange_type)Ú
splitlinesrÛ   r†  rZ   r   )r»  ro   rê  Úhshr^  rñ  Úraw_insertionsÚraw_deletionsÚfilenamerì  rí  Ú
files_dicts               r^   Ú_list_from_stringzStats._list_from_string	  sg  € ð %&°AÀÈAÐNÐNØð
ð 
ˆð —O’OÑ%Ô%ð 	8ð 	8ˆDØEIÇZÂZÐPTÑEUÔEUÑBˆ[˜.¨-¸Ø'¨3Ò.ÐFµ3°~Ñ3FÔ3FÐKÈ!ˆJØ%¨Ò,ÐCµ°]Ñ1CÔ1CÐHÀqˆIØ�ŒL˜Ð&Ð&Ô&¨*Ñ4Ð&Ð&Ñ&Ø�ŒL˜Ð%Ð%Ô%¨Ñ2Ð%Ð%Ñ%Ø�ŒL˜Ð!Ð!Ô! Z°)Ñ%;Ñ;Ð!Ð!Ñ!Ø�ŒL˜Ð!Ð!Ô! QÑ&Ð!Ð!Ñ!à(Ø&Ø# iÑ/Ø*ð	$ð $ˆJð .8ˆC�ŒL˜ŸšÑ)Ô)Ñ*Ð*Ý�S˜”\ 3 w¤<Ñ0Ô0Ð0rd   )rq   rƒ  r„  r…  r‹  rD   r)   rA   r=   r]  rã  r�   rø  rØ   rd   r^   r   r   è  s�   € € € € € ðð ð4 #€Ið˜hð ¨t°H¸hÐ4FÔ/Gð ÈDð ð ð ð ð ð1 Vð 1°3ð 1¸7ð 1ð 1ð 1ñ „[ð1ð 1ð 1rd   r   c                   óf   — e Zd ZdZdZdee         ddfd„Zdedefd„Z	defd	„Z
defd
„Zdefd„ZdS )r   a  Wrapper around a file-like object that remembers the SHA1 of the data written to
    it. It will write a sha when the stream is closed or if asked for explicitly using
    :meth:`write_sha`.

    Only useful to the index file.

    :note:
        Based on the dulwich project.
    )rò   Úsha1rò   rL   Nc                 ó<   — || _         t          d¦  «        | _        d S )Nrd   )rò   r"   rú  )rk   rò   s     r^   r]  zIndexFileSHA1Writer.__init__5  s   € ØˆŒÝ˜S‘M”MˆŒ	ˆ	ˆ	rd   Údatac                 ój   — | j                              |¦  «         | j                             |¦  «        S r°   )rú  rp  rò   rž   )rk   rü  s     r^   rž   zIndexFileSHA1Writer.write9  s,   € ØŒ	×Ò˜ÑÔÐØŒv�|Š|˜DÑ!Ô!Ð!rd   c                 ól   — | j                              ¦   «         }| j                             |¦  «         |S r°   )rú  Údigestrò   rž   ©rk   Úshas     r^   Ú	write_shazIndexFileSHA1Writer.write_sha=  s.   € ØŒi×ÒÑ Ô ˆØŒ�Š�SÑÔÐØˆ
rd   c                 ó`   — |                       ¦   «         }| j                             ¦   «          |S r°   )r  rò   Úcloser   s     r^   r  zIndexFileSHA1Writer.closeB  s%   € Ø�nŠnÑÔˆØŒ�Š‰ŒˆØˆ
rd   c                 ó4   — | j                              ¦   «         S r°   )rò   Útellr\  s    r^   r  zIndexFileSHA1Writer.tellG  s   € ØŒv�{Š{‰}Œ}Ðrd   )rq   rƒ  r„  r…  r‹  r+   r`  r]  r†  rž   r  r  r  rØ   rd   r^   r   r   (  s¾   € € € € € ðð ð €Ið"˜"˜Uœ)ð "¨ð "ð "ð "ð "ð"˜%ð " Cð "ð "ð "ð "ð˜5ð ð ð ð ð
�uð ð ð ð ð
�cð ð ð ð ð ð rd   r   c                   ó^   — e Zd ZdZdZdeddfd„Zdd„Zdefd„Z	de
fd	„Zdd
„Zdd„Zdd„ZdS )r   a  Provides methods to obtain, check for, and release a file based lock which
    should be used to handle concurrent access to the same file.

    As we are a utility class to be derived from, we only use protected methods.

    Locks will automatically be released on destruction.
    ©Ú
_file_pathÚ
_owns_lockÚ	file_pathrL   Nc                 ó"   — || _         d| _        d S )NFr  )rk   r  s     r^   r]  zLockFile.__init__V  s   € Ø#ˆŒØˆŒˆˆrd   c                 ó.   — |                       ¦   «          d S r°   )Ú_release_lockr\  s    r^   Ú__del__zLockFile.__del__Z  s   € Ø×ÒÑÔÐÐÐrd   c                 ó   — d| j         z  S )z:return: Path to lockfilez%s.lock)r	  r\  s    r^   Ú_lock_file_pathzLockFile._lock_file_path]  s   € à˜DœOÑ,Ð,rd   c                 ó   — | j         S )z«
        :return:
            True if we have a lock and if the lockfile still exists

        :raise AssertionError:
            If our lock-file does not exist.
        )r
  r\  s    r^   Ú	_has_lockzLockFile._has_locka  s   € ð ŒÐrd   c                 ó|  — |                       ¦   «         rdS |                      ¦   «         }t          j        |¦  «        rt	          d| j        ›d|›d�¦  «        ‚	 t          |d¬¦  «        5  	 ddd¦  «         n# 1 swxY w Y   n/# t          $ r"}t	          t          |¦  «        ¦  «        |‚d}~ww xY wd| _	        dS )zÊCreate a lock file as flag for other instances, mark our instance as
        lock-holder.

        :raise IOError:
            If a lock was already present or a lock file could not be written.
        NzLock for file z did already exist, delete z in case the lock is illegalÚw)ÚmodeT)
r  r  r“   r”   ÚIOErrorr	  ÚopenÚOSErrorr�   r
  )rk   Ú	lock_filerÉ   s      r^   Ú_obtain_lock_or_raisezLockFile._obtain_lock_or_raisek  s  € ð �>Š>ÑÔð 	ØˆFØ×(Ò(Ñ*Ô*ˆ	ÝŒ:�iÑ Ô ð 	Ý�'à”?�?�? I I Ið/ñô ð ð
	)Ý�i cÐ*Ñ*Ô*ð ð Øðð ð ñ ô ð ð ð ð ð ð øøøð ð ð ð øøåð 	)ð 	)ð 	)Ý�#˜a™&œ&‘/”/ qÐ(øøøøð	)øøøð ˆŒˆˆs<   ÁB Á,A:Á.B Á:A>Á>B ÂA>ÂB Â
B2ÂB-Â-B2c                 ó*   — |                       ¦   «         S )z The default implementation will raise if a lock cannot be obtained.

        Subclasses may override this method to provide a different implementation.
        )r  r\  s    r^   Ú_obtain_lockzLockFile._obtain_lockƒ  s   € ð
 ×)Ò)Ñ+Ô+Ð+rd   c                 óª   — |                       ¦   «         sdS |                      ¦   «         }	 t          |¦  «         n# t          $ r Y nw xY wd| _        dS )z Release our lock if we have one.NF)r  r  r—   r  r
  )rk   Úlfps     r^   r  zLockFile._release_lockŠ  si   € à�~Š~ÑÔð 	ØˆFð ×"Ò"Ñ$Ô$ˆð	Ý�3‰KŒKˆKˆKøÝð 	ð 	ð 	ØˆDð	øøøàˆŒˆˆs   ¬< ¼
A	ÁA	r�  )rq   rƒ  r„  r…  r‹  rA   r]  r  r�   r  rî   r  r  r  r  rØ   rd   r^   r   r   K  sÍ   € € € € € ðð ð -€Ið  (ð  ¨tð  ð  ð  ð  ðð ð ð ð- ð -ð -ð -ð -ð˜4ð ð ð ð ðð ð ð ð0,ð ,ð ,ð ,ð ð  ð  ð  ð  ð  rd   r   c            	       óT   ‡ — e Zd ZdZdZdej        fdedede	ddfˆ fd	„Z
dˆ fd
„Zˆ xZS )r   a  The lock file will block until a lock could be obtained, or fail after a
    specified timeout.

    :note:
        If the directory containing the lock was removed, an exception will be raised
        during the blocking period, preventing hangs as the lock can never be obtained.
    )Ú_check_intervalÚ_max_block_timeg333333Ó?r  Úcheck_interval_sÚmax_block_time_srL   Nc                 óf   •— t          ¦   «                              |¦  «         || _        || _        dS )a  Configure the instance.

        :param check_interval_s:
            Period of time to sleep until the lock is checked the next time.
            By default, it waits a nearly unlimited time.

        :param max_block_time_s:
            Maximum amount of seconds we may lock.
        N)r”  r]  r!  r"  )rk   r  r#  r$  r•  s       €r^   r]  zBlockingLockFile.__init__¤  s3   ø€ õ 	‰Œ×Ò˜Ñ#Ô#Ð#Ø/ˆÔØ/ˆÔÐÐrd   c                 óT  •— t          j         ¦   «         }|t          | j        ¦  «        z   }	 	 t          ¦   «                              ¦   «          dS # t
          $ rÌ}t          j         ¦   «         }t          j        t          j        |  	                    ¦   «         ¦  «        ¦  «        s,d|  	                    ¦   «         ||z
  fz  }t          |¦  «        |‚||k    r,d||z
  |  	                    ¦   «         fz  }t          |¦  «        |‚t          j
        | j        ¦  «         Y d}~nd}~ww xY wŒý)zéThis method blocks until it obtained the lock, or raises :exc:`IOError` if it
        ran out of time or if the parent directory was not available anymore.

        If this method returns, you are guaranteed to own the lock.
        TzVDirectory containing the lockfile %r was not readable anymore after waiting %g secondsz Waited %g seconds for lock at %rN)Útimerq  r"  r”  r  r  r“   rÐ   rÏ   r  Úsleepr!  )rk   Ú	starttimeÚmaxtimerÉ   ÚcurtimeÚmsgr•  s         €r^   r  zBlockingLockFile._obtain_lock·  sD  ø€ õ ”I‘K”Kˆ	Ø�e DÔ$8Ñ9Ô9Ñ9ˆð	ðÝ‘”×$Ò$Ñ&Ô&Ð&ð, �øõ+ ð 1ð 1ð 1õ œ)™+œ+�Ý”y¥¤¨T×-AÒ-AÑ-CÔ-CÑ!DÔ!DÑEÔEð .ØrØ×,Ò,Ñ.Ô.Ø )Ñ+ðvñ �Cõ " #™,œ,¨AÐ-ð ˜gÒ%Ð%Ø<Ø )Ñ+Ø×,Ò,Ñ.Ô.ð@ñ �Cõ " #™,œ,¨AÐ-å”
˜4Ô/Ñ0Ô0Ð0Ð0Ð0Ð0Ð0Ð0øøøøð'1øøøð	s   ® A Á
D&ÁCD!Ä!D&r�  )rq   rƒ  r„  r…  r‹  ra   ÚmaxsizerA   rq  r†  r]  r  r—  r˜  s   @r^   r   r   ™  s¡   ø€ € € € € ðð ð 7€Ið
 #&Ø #¤ð	0ð 0àð0ð  ð0ð ð	0ð
 
ð0ð 0ð 0ð 0ð 0ð 0ð& ð  ð  ð  ð  ð  ð  ð  ð  ð  rd   r   c                   ó¸   ‡ — e Zd ZdZdZddededdfˆ fd„Zddededd	fˆ fd
„Zdede	fd„Z
dedefd„Zdeeeeef         defd„Zdeeeeef         dd	fd„Zˆ xZS )r
   aº  List of iterable objects allowing to query an object by id or by named index::

     heads = repo.heads
     heads.master
     heads['master']
     heads[0]

    Iterable parent objects:

    * :class:`Commit <git.objects.Commit>`
    * :class:`Submodule <git.objects.submodule.base.Submodule>`
    * :class:`Reference <git.refs.reference.Reference>`
    * :class:`FetchInfo <git.remote.FetchInfo>`
    * :class:`PushInfo <git.remote.PushInfo>`

    Iterable via inheritance:

    * :class:`Head <git.refs.head.Head>`
    * :class:`TagReference <git.refs.tag.TagReference>`
    * :class:`RemoteReference <git.refs.remote.RemoteReference>`

    This requires an ``id_attribute`` name to be set which will be queried from its
    contained items to have a means for comparison.

    A prefix can be specified which is to be used in case the id returned by the items
    always contains a prefix that does not matter to the user, so it can be left out.
    )Ú_id_attrÚ_prefixrN   Úid_attrÚprefixrL   zIterableList[T_IterableObj]c                 óF   •— t          ¦   «                              | ¦  «        S r°   )r”  Ú__new__)r»  r1  r2  r•  s      €r^   r4  zIterableList.__new__ú  s   ø€ Ý‰wŒw�Š˜sÑ#Ô#Ð#rd   Nc                 ód   •— t          ¦   «                              ¦   «          || _        || _        d S r°   )r”  r]  r/  r0  )rk   r1  r2  r•  s      €r^   r]  zIterableList.__init__ý  s+   ø€ Ý‰Œ×ÒÑÔÐØˆŒØˆŒˆˆrd   rÔ  c                 óî   — 	 t                                | |¦  «        }|r|S n# t          t          f$ r Y nw xY w	 t	          | t          t          |¦  «        ¦  «         dS # t          t          f$ r Y dS w xY w)NTF)ÚlistÚ__contains__ÚAttributeErrorÚ	TypeErrorrÒ  r6   r�   )rk   rÔ  Úrvals      r^   r8  zIterableList.__contains__  sœ   € ð	Ý×$Ò$ T¨4Ñ0Ô0ˆDØð Ø�ðøå¥	Ð*ð 	ð 	ð 	ØˆDð	øøøð
	Ý�D�$�s D™/œ/Ñ*Ô*Ð*Ø�4øÝ¥	Ð*ð 	ð 	ð 	Ø�5�5ð	øøøs   ‚" ¢6µ6º#A ÁA4Á3A4c                 ó�   — | j         |z   }| D ]}t          || j        ¦  «        |k    r|c S Œ t                               | |¦  «        S r°   )r0  rÒ  r/  r7  Ú__getattribute__)rk   rÔ  Úitems      r^   Ú__getattr__zIterableList.__getattr__  sZ   € ØŒ|˜dÑ"ˆØð 	ð 	ˆDÝ�t˜Tœ]Ñ+Ô+¨tÒ3Ð3Ø���ð 4õ ×$Ò$ T¨4Ñ0Ô0Ð0rd   rJ  c                 óJ  — t          |t          ¦  «        rt                               | |¦  «        S t          |t          ¦  «        rt          d¦  «        ‚	 t          | t          t          |¦  «        ¦  «        S # t          $ r}t          d| j        › |› �¦  «        |‚d }~ww xY w)NzIndex should be an int or strzNo item found with id )r<  r†  r7  Ú__getitem__Úslicer¾   rÒ  r6   r�   r9  Ú
IndexErrorr0  )rk   rJ  rÉ   s      r^   rA  zIterableList.__getitem__  s³   € õ �e�SÑ!Ô!ð 	XÝ×#Ò# D¨%Ñ0Ô0Ð0Ý˜�uÑ%Ô%ð 	XÝÐ<Ñ=Ô=Ð=ðXÝ˜t¥T­#¨uÑ%5Ô%5Ñ6Ô6Ð6øÝ!ð Xð Xð XÝ Ð!O¸$¼,Ð!OÈÐ!OÐ!OÑPÔPÐVWÐWøøøøðXøøøs   Á"A9 Á9
B"ÂBÂB"c                 ó<  — t          t          |¦  «        }t          |t          ¦  «        rVd}| j        |z   }t          | ¦  «        D ]"\  }}t          || j        ¦  «        |k    r|} nŒ#|dk    rt          d|z  ¦  «        ‚t           
                    | |¦  «         d S )NéÿÿÿÿzItem with name %s not found)r6   r†  r<  r�   r0  rD  rÒ  r/  rC  r7  Ú__delitem__)rk   rJ  ÚdelindexrJ   Úir>  s         r^   rF  zIterableList.__delitem__*  s±   € Ý�˜UÑ#Ô#ˆÝ�e�SÑ!Ô!ð 
	GØˆHØ”< %Ñ'ˆDÝ$ T™?œ?ð ð ‘��4Ý˜4 ¤Ñ/Ô/°4Ò7Ð7Ø �HØ�Eð 8ð
 ˜2Š~ˆ~Ý Ð!>ÀÑ!EÑFÔFÐFõ 	×Ò˜˜xÑ(Ô(Ð(Ð(Ð(rd   )rN   )rq   rƒ  r„  r…  r‹  r�   r4  r]  rŽ  rî   r8  rF   r?  r5   rC   r†  rB  rA  rF  r—  r˜  s   @r^   r
   r
   Û  sM  ø€ € € € € ðð ð8 (€Ið$ð $˜cð $¨3ð $Ð8Uð $ð $ð $ð $ð $ð $ðð  ð ¨Sð ¸$ð ð ð ð ð ð ð
 ð ¨Dð ð ð ð ð$1 ð 1¨ð 1ð 1ð 1ð 1ðXØ˜=¨#¨u°cÐ9Ô:ðXà	ðXð Xð Xð Xð)  }°c¸5À#Ð'EÔ!Fð )È4ð )ð )ð )ð )ð )ð )ð )ð )rd   r
   c                   óš   — e Zd ZU dZdZeed<   eeddde	de	de
e         fd	„¦   «         ¦   «         Zeddde	de	dee         fd
„¦   «         ZdS )r	   aÁ  Defines an interface for iterable items, so there is a uniform way to retrieve
    and iterate items within the git repository.

    Subclasses:

    * :class:`Submodule <git.objects.submodule.base.Submodule>`
    * :class:`Commit <git.objects.Commit>`
    * :class:`Reference <git.refs.reference.Reference>`
    * :class:`PushInfo <git.remote.PushInfo>`
    * :class:`FetchInfo <git.remote.FetchInfo>`
    * :class:`Remote <git.remote.Remote>`
    rØ   Ú_id_attribute_ro   r<   rl   rm   rL   c                 ó    — t          d¦  «        ‚)aS  Find (all) items of this type.

        Subclasses can specify `args` and `kwargs` differently, and may use them for
        filtering. However, when the method is called with no additional positional or
        keyword arguments, subclasses are obliged to to yield all items.

        :return:
            Iterator yielding Items
        úTo be implemented by Subclass©ÚNotImplementedError©r»  ro   rl   rm   s       r^   Ú
iter_itemszIterableObj.iter_itemsO  s   € õ "Ð"AÑBÔBÐBrd   c                 óv   — t          | j        ¦  «        }|                      | j        |g|¢R i |¤Ž¦  «         |S )aª  Find (all) items of this type and collect them into a list.

        For more information about the arguments, see :meth:`iter_items`.

        :note:
            Favor the :meth:`iter_items` method as it will avoid eagerly collecting all
            items. When there are many items, that can slow performance and increase
            memory usage.

        :return:
            list(Item,...) list of item instances
        ©r
   rJ  ÚextendrP  ©r»  ro   rl   rm   Úout_lists        r^   Ú
list_itemszIterableObj.list_items^  sG   € õ 1=¸SÔ=OÑ0PÔ0PˆØ�Š˜˜œ tÐ=¨dÐ=Ð=Ð=°fÐ=Ð=Ñ>Ô>Ð>Øˆrd   N)rq   rƒ  r„  r…  r‹  r�   r‡  rã  r   r%   r,   rF   rP  r
   rV  rØ   rd   r^   r	   r	   <  sÆ   € € € € € € ðð ð €IàÐÐÑàØðC˜fð C¨Sð C¸Cð CÀHÈ]ÔD[ð Cð Cð Cñ „^ñ „[ðCð ð˜fð ¨Sð ¸Cð ÀLÐQ^ÔD_ð ð ð ñ „[ðð ð rd   r	   c                   óT   ‡ — e Zd ZdZdedeedf         deeef         ddfˆ fd„Z	ˆ xZ
S )	ÚIterableClassWatcherzbMetaclass that issues :exc:`DeprecationWarning` when :class:`git.util.Iterable`
    is subclassed.rJ   Úbases.ÚclsdictrL   Nc                 óÄ   •— t          ¦   «                              |||¦  «         |D ]8}t          |¦  «        t          u r t	          j        d|› d�t          d¬¦  «         Œ9d S )Nz!GitPython Iterable subclassed by zq. Iterable is deprecated due to naming clash since v3.1.18 and will be removed in 4.0.0. Use IterableObj instead.rž  rŸ  )r”  r]  ÚtyperX  r¡  r¢  r£  )r»  rJ   rY  rZ  Úbaser•  s        €r^   r]  zIterableClassWatcher.__init__u  s‚   ø€ Ý‰Œ×Ò˜˜u gÑ.Ô.Ð.Øð 		ð 		ˆDÝ�D‰zŒzÕ1Ð1Ð1Ý”ð0¸ð 0ð 0ð 0õ 'Ø ðñ ô ð øð		ð 		rd   )rq   rƒ  r„  r…  r�   r1   r\  r)   r%   r]  r—  r˜  s   @r^   rX  rX  q  su   ø€ € € € € ðð ð˜Cð ¨¨d°C¨iÔ(8ð À4ÈÈSÈÄ>ð ÐVZð ð ð ð ð ð ð ð ð ð rd   rX  c            	       ój   — e Zd ZdZdZdZedddededefd	„¦   «         Zedddededefd
„¦   «         Z	dS )ÚIterablez·Deprecated, use :class:`IterableObj` instead.

    Defines an interface for iterable items, so there is a uniform way to retrieve
    and iterate items within the git repository.
    rØ   z5attribute that most suitably identifies your instancero   r<   rl   rm   rL   c                 ó    — t          d¦  «        ‚)zÖDeprecated, use :class:`IterableObj` instead.

        Find (all) items of this type.

        See :meth:`IterableObj.iter_items` for details on usage.

        :return:
            Iterator yielding Items
        rL  rM  rO  s       r^   rP  zIterable.iter_itemsŽ  s   € õ "Ð"AÑBÔBÐBrd   c                 óv   — t          | j        ¦  «        }|                      | j        |g|¢R i |¤Ž¦  «         |S )a  Deprecated, use :class:`IterableObj` instead.

        Find (all) items of this type and collect them into a list.

        See :meth:`IterableObj.list_items` for details on usage.

        :return:
            list(Item,...) list of item instances
        rR  rT  s        r^   rV  zIterable.list_items›  sG   € õ % SÔ%7Ñ8Ô8ˆØ�Š˜˜œ tÐ=¨dÐ=Ð=Ð=°fÐ=Ð=Ñ>Ô>Ð>Øˆrd   N)
rq   rƒ  r„  r…  r‹  rJ  rã  r%   rP  rV  rØ   rd   r^   r_  r_  ƒ  s¨   € € € € € ðð ð €IàL€Nàð
C˜fð 
C¨Sð 
C¸Cð 
CÀCð 
Cð 
Cð 
Cñ „[ð
Cð ð˜fð ¨Sð ¸Cð ÀCð ð ð ñ „[ðð ð rd   r_  )Ú	metaclass)r˜   )Fr°   )T).)…ra   Ú__all__rb   rï   Úabcr   Ú
contextlibÚ	functoolsr   r0  ÚloggingrU   Úos.pathr~   r“   Úpathlibr   rŒ  r�   r…   r  r'  Úurllib.parser   r   r¡  Ú
gitdb.utilr   r   r   r   r    r!   r"   r#   r$   Útypingr%   r&   r'   r(   r)   r*   r+   r,   r-   r.   r/   r0   r1   r2   r3   r4   r5   r6   r7   Úgit.cmdr8   Ú
git.configr9   r:   Ú
git.remoter;   Úgit.repo.baser<   Ú	git.typesr=   r>   r?   r@   rA   rB   rC   rD   rE   rF   rI   Ú	getLoggerrq   rX   r�   rî   r_   rc   r   re   rf   r   Úcontextmanagerry   r}   r   r—   r†  r   r   r   r   r²   r   rº   rË   r   rÝ   ró   rü   r�  ÚIr  r‡  rú   r  r  r  r&  r)  r   r6  r9  rQ  r   r   rš  r   r   r   r   r   r
   r	   r\  rX  r_  rØ   rd   r^   ú<module>ru     s7  ðð €
€
€
€
ðð ð €ð* „<�7ÒÐØ‡N‚NÐ+Ñ,Ô,Ð,à Ð Ð Ð Ð Ð Ø Ð Ð Ð Ø Ð Ð Ð Ð Ð Ø €€€Ø €€€Ø 	€	€	€	Ø Ð Ð Ð Ð Ð Ø Ð Ð Ð Ð Ð Ø €€€Ø 	€	€	€	Ø €€€Ø €€€Ø Ð Ð Ð Ø €€€Ø -Ð -Ð -Ð -Ð -Ð -Ð -Ð -Ø €€€ð
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ðð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð ð, ð #ØÐÐÐÐÐØ=Ð=Ð=Ð=Ð=Ð=Ð=Ð=Ø!Ð!Ð!Ð!Ð!Ð!Ø"Ð"Ð"Ð"Ð"Ð"ð
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð 
ð �˜¨uÐ5VÔ/WÐcgÐhÑhÔh€à
ˆ'�) 7Ð
+Ñ
+Ô
+€à
ˆ'Ô
˜HÑ
%Ô
%€ð˜ð  tð °ð ð ð ð ð4
E˜Sð 
E¨4ð 
E°Dð 
Eð 
Eð 
Eð 
Eð  /Ð.Ð/JÈDÑQÔQÐ Ø/Ð/Ð0LÈdÑSÔSÐ ð €GˆC�L„L€ð�h˜s A˜vÔ&ð ¨8°C¸°FÔ+;ð ð ð ð ð$ Ôð�ð ˜i¨°$¸Ð(<Ô=ð ð ð ñ Ôðð Ôð
)�Cð 
) ð 
)¨	Ð2BÔ(Cð 
)ð 
)ð 
)ñ Ôð
)ð-�ð -˜dð -ð -ð -ð -ðB�ð ˜dð ð ð ð ðð ˜ð ¨xð ÀSð ÐZ]ð ð ð ð ð$�ð ˜xð ¨Hð ð ð ð ð$ „<�7ÒÐð' Xð '°#ð 'ð 'ð 'ð 'ð' 8ð '°ð 'ð 'ð 'ð 'ð ,€N€Nð 8ð °ð ð ð ð ð *€Nð,˜ð , hð ,°8ð ,ð ,ð ,ð ,ðG˜(ð G tð Gð Gð Gð Gð"*˜Hð *¨Hð *¸ð *ð *ð *ð *ðZð  (ð °Tð Àdð ð ð ð ð&˜X cœ]ð ð ð ð ð#ð #�cð # ¨(Ô!3ð #¸tÀC¼yð #ð #ð #ð #ðL$ð $�h˜s”mð $¨3ð $¸Tð $ÈSð $ð $ð $ð $ð. 	ˆŒ
Ð@ÑAÔAØ	fÐ	fØðð
 €R„ZÐ)Ñ*Ô*¨Z¸%Ð@Ø€R„ZÐ!Ñ"Ô" Z°%Ð8Ø€R„Z�˜bœdÑ#Ô#Ð&AÐ&AÀDÐIØ€R„Z�ÑÔ / /°EÐ:ðOÐ �%˜˜g cœl¨H°S¸#°XÔ,>ÀÐDÔEÀsÐJÔKð ð ñ ðð �#ð  Dð °Cð ð ð ð ð* �2”:Ð?Ñ@Ô@Ð ð#�Hð # ð #ð #ð #ð #ð /1Ð �$�s˜H TœNÐ*Ô+Ð 0Ð 0Ñ 0ð 3ð ¨4ð ð ð ð ð: 
Ø > $Ð >¨7°5¬>Ð >Ð >Ð >ñ 
„Ø >ð 
Ø 8 (Ð 8¨tÐ 8Ð 8Ð 8ñ 
„Ø 8ð3 %¨¨h¨Ô"7ð 3¸Dð 3ð 3ð 3ð 3ð:�Sð :ð :ð :ð :ð
˜5Ð!MÔNð ÐZ]ð Ðbfð ð ð ð ð 
Ø >Ð >�4Ð > dÐ >°TÐ >Ð >Ð >ñ 
„Ø >ð 
ðð �8ð ¨$ð ¸À(Ô9Kð ð ð ñ 
„ðð
ð �5˜˜x˜Ô(ð °tð ÀxÐPXÔGYð ð ð ð ð#¨°¬ð #¸$¸s¼)ð #ð #ð #ð #ðVzð zð zð zð zñ zô zð zðz(ð (ð (ð (ð (˜^ñ (ô (ð (ð(ð ð ð ð ñ ô ð ð}Yð }Yð }Yð }Yð }Yñ }Yô }Yð }Yð@=1ð =1ð =1ð =1ð =1ñ =1ô =1ð =1ð@ ð  ð  ð  ð  ñ  ô  ð  ðFK ð K ð K ð K ð K ñ K ô K ð K ð\>ð >ð >ð >ð >�xñ >ô >ð >ðD^)ð ^)ð ^)ð ^)ð ^)�4˜Ô&ñ ^)ô ^)ð ^)ðB ð1ð 1ð 1ð 1ð 1�(ñ 1ô 1ñ Ôð1ðhð ð ð ð ˜4ñ ô ð ð$%ð %ð %ð %ð %Ð-ð %ñ %ô %ð %ð %ð %rd   