Ë
    ùmxi$j  ã                   ól  — U g d ¢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m	Z	 ddl
mZ ddl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 dd	lmZmZ er$dd
lmZ ddlm Z  ddl!m"Z" ddl#m$Z$ ddl%m&Z& ddl'm(Z( ed   Z)ejT                   G d„ dejV                  «      «       Z,e,jZ                  Z-ee,jZ                     e.d<   	 e,j^                  Z/ee,j^                     e.d<   	  ej`                  d«      Z1dede2fd„Z3d$de2de4dee2   fd„Z5 G d„ d«      Z6 edd¬ «      Z7 G d!„ d"ee7   «      Z8 G d#„ d«      Z9y)%)ÚDiffConstantsÚ	NULL_TREEÚINDEXÚDiffableÚ	DiffIndexÚDiffé    N)Úhandle_process_output)Údefenc)ÚBlob)Úmode_str_to_int)Úfinalize_processÚ
hex_to_bin)ÚAnyÚIteratorÚListÚMatchÚOptionalÚSequenceÚTupleÚTYPE_CHECKINGÚTypeVarÚUnionÚcast)ÚPathLikeÚLiteral)ÚPopen)ÚGit)ÚIndexObject)ÚCommit)ÚTree)ÚRepo)ÚAÚDÚCÚMÚRÚTÚUc                   óV   — e Zd ZdZ ej
                  «       Z	  ej
                  «       Zy)r   ay  Special objects for :meth:`Diffable.diff`.

    See the :meth:`Diffable.diff` method's ``other`` parameter, which accepts various
    values including these.

    :note:
        These constants are also available as attributes of the :mod:`git.diff` module,
        the :class:`Diffable` class and its subclasses and instances, and the top-level
        :mod:`git` module.
    N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚenumÚautor   r   © ó    ú?/home/htdocs/ttos/venv/lib/python3.12/site-packages/git/diff.pyr   r   1   s/   „ ñ	ð �—	‘	“€Iðð ˆD�I‰I‹K€Eðr1   r   r   r   s   \\([0-9]{3})ÚmatchobjÚreturnc                 ój   — | j                  d«      }t        |d«      }t        t        |f«      «      }|S )Né   é   )ÚgroupÚintÚbytesÚ	bytearray)r3   Úvalues     r2   Ú_octal_replr=   c   s1   € Ø�N‰N˜1Ó€EÜ��q‹M€EÜ”)˜U˜HÓ%Ó&€EØ€Lr1   ÚpathÚhas_ab_prefixc                 ój  — | dk(  ry | j                  d«      rV| j                  d«      rE| dd j                  dd«      j                  dd«      j                  d	d«      j                  d
d«      } t        j	                  t
        | «      } |r)| j                  d«      s| j                  d«      sJ ‚| dd  } | S )Ns	   /dev/nulló   "r6   éÿÿÿÿs   \nó   
s   \tó   	s   \"s   \\ó   \s   a/s   b/é   )Ú
startswithÚendswithÚreplaceÚ_octal_byte_reÚsubr=   )r>   r?   s     r2   Údecode_pathrL   j   s©   € Øˆ|ÒØà‡��tÔ §¡¨tÔ!4Ø�A�bˆz×!Ñ! &¨%Ó0×8Ñ8¸ÀÓG×OÑOÐPVÐX\Ó]×eÑeÐfmÐotÓuˆä×Ñœk¨4Ó0€DáØ�‰˜uÔ%¨¯©¸Ô)?Ð?Ð?Ø�A�Bˆxˆà€Kr1   c                   ó¶   — e Zd ZU dZdZded<   	 eZ	 eZ	 eZ	 de	e
ed f      de	e
ed f      fd„Zedd	fd
e
eddedf   de
ee	e   eedf   df   dededdf
d„Zy)r   aG  Common interface for all objects that can be diffed against another object of
    compatible type.

    :note:
        Subclasses require a :attr:`repo` member, as it is the case for
        :class:`~git.objects.base.Object` instances. For practical reasons we do not
        derive from :class:`~git.objects.base.Object`.
    r0   r!   ÚrepoÚargsr4   c                 ó   — |S )zé
        :return:
            Possibly altered version of the given args list.
            This method is called right before git command execution.
            Subclasses can use it to alter the behaviour of the superclass.
        r0   )ÚselfrO   s     r2   Ú_process_diff_argszDiffable._process_diff_args­   s	   € ð ˆr1   NFÚotherr    r   Úpaths.Úcreate_patchÚkwargsúDiffIndex[Diff]c                 óJ  ‡— g }|j                  d«       |j                  d«       t        ˆfd„dD «       «      s|j                  d«       |r#|j                  d«       |j                  d«       n"|j                  d«       |j                  d	«       |j                  d
«       |�t        |t        t        f«      s|g}| j
                  j                  j                  }|t        u r|j                  dd«       n“|t        u rE|j                  dd«       |j                  dd«       | j
                  j                  j                  }nF|�D|j                  dd«       |j                  d|«       | j
                  j                  j                  }|j                  d| «       |r"|j                  d«       |j                  |«       d‰d<    || j                  |«      i ‰¤Ž}|rt        j                  nt        j                   } || j
                  |«      }	|j#                  «        |	S )aC  Create diffs between two items being trees, trees and index or an index and
        the working tree. Detects renames automatically.

        :param other:
            This the item to compare us with.

            * If ``None``, we will be compared to the working tree.

            * If a :class:`~git.types.Tree_ish` or string, it will be compared against
              the respective tree.

            * If :const:`INDEX`, it will be compared against the index.

            * If :const:`NULL_TREE`, it will compare against the empty tree.

            This parameter defaults to :const:`INDEX` (rather than ``None``) so that the
            method will not by default fail on bare repositories.

        :param paths:
            This a list of paths or a single path to limit the diff to. It will only
            include at least one of the given path or paths.

        :param create_patch:
            If ``True``, the returned :class:`Diff` contains a detailed patch that if
            applied makes the self to other. Patches are somewhat costly as blobs have
            to be read and diffed.

        :param kwargs:
            Additional arguments passed to :manpage:`git-diff(1)`, such as ``R=True`` to
            swap both sides of the diff.

        :return:
            A :class:`DiffIndex` representing the computed diff.

        :note:
            On a bare repository, `other` needs to be provided as :const:`INDEX`, or as
            an instance of :class:`~git.objects.tree.Tree` or
            :class:`~git.objects.commit.Commit`, or a git command error will occur.
        z--abbrev=40z--full-indexc              3   ó&   •K  — | ]  }|‰v –— Œ
 y ­w©Nr0   )Ú.0ÚxrV   s     €r2   ú	<genexpr>z Diffable.diff.<locals>.<genexpr>ì   s   øè ø€ ÒL 1�1˜”;ÑLùs   ƒ)Úfind_renamesÚ
no_renamesr%   z-Mz-pz--no-ext-diffz--rawz-zz
--no-colorr   z--cachedz-rz--rootz--TÚ
as_process)ÚappendÚanyÚ
isinstanceÚtupleÚlistrN   ÚgitÚdiffr   Úinsertr   Ú	diff_treeÚextendrR   r   Ú_index_from_patch_formatÚ_index_from_raw_formatÚwait)
rQ   rS   rT   rU   rV   rO   Údiff_cmdÚprocÚdiff_methodÚindexs
       `     r2   rg   zDiffable.diff¹   s³  ø€ ð\ 13ˆØ�‰�MÔ"Ø�‰�NÔ#ô ÓLÐ(KÔLÔLØ�K‰K˜ÔáØ�K‰K˜ÔØ�K‰K˜Õ(à�K‰K˜Ô Ø�K‰K˜Ôð 	�‰�LÔ!àÐ¤Z°¼¼t°}Ô%EØ�GˆEà—9‘9—=‘=×%Ñ%ˆØ”E‰>Ø�K‰K˜˜:Õ&Ø”iÑØ�K‰K˜˜4Ô Ø�K‰K˜˜8Ô$Ø—y‘y—}‘}×.Ñ.‰HØÐØ�K‰K˜˜4Ô Ø�K‰K˜˜5Ô!Ø—y‘y—}‘}×.Ñ.ˆHà�‰�A�tÔñ Ø�K‰K˜ÔØ�K‰K˜Ôð  $ˆˆ|ÑÙ˜×0Ñ0°Ó6ÐA¸&ÑAˆá7C”d×3Ò3Ì×IdÑIdˆÙ˜DŸI™I tÓ,ˆà�	‰	ŒØˆr1   )r*   r+   r,   r-   Ú	__slots__Ú__annotations__r   r   ÚIndexr   r   r   rR   r   Ústrr   Úboolr   rg   r0   r1   r2   r   r   z   sà   … ñð €Ià
ƒLØRà€Iðð €Eðð €Eðð
à�5˜ :Ð-Ñ.Ñ/ð
ð 
ˆe�H˜jÐ(Ñ)Ñ	*ó
ð DIØMQØ"ñ	_à�] F¨H°c¸4Ð?Ñ@ð_ð �X˜t H™~¨u°X¸s°]Ñ/CÀTÐIÑJð_ð ð	_ð
 ð_ð 
ô_r1   r   ÚT_Diffr   )Úboundc                   óD   — e Zd ZU dZdZeed      ed<   	 dede	e
   fd„Zy)r   zœAn index for diffs, allowing a list of :class:`Diff`\s to be queried by the diff
    properties.

    The class improves the diff handling convenience.
    )r"   r$   r#   r&   r%   r'   Úchange_typer4   c              #   ó¦  K  — || j                   vrt        d|z  «      ‚| D ]¬  }|j                   |k(  r|–— Œ|dk(  r|j                  r|–— Œ-|dk(  r|j                  r|–— ŒC|dk(  r|j                  r|–— ŒY|dk(  r|j
                  r|–— Œo|dk(  sŒu|j                  sŒ‚|j                  sŒ�|j                  |j                  k7  sŒ©|–— Œ® y­w)a—  
        :return:
            Iterator yielding :class:`Diff` instances that match the given `change_type`

        :param change_type:
            Member of :attr:`DiffIndex.change_type`, namely:

            * 'A' for added paths
            * 'D' for deleted paths
            * 'R' for renamed paths
            * 'M' for paths with modified data
            * 'T' for changed in the type paths
        zInvalid change type: %sr"   r#   r$   r&   r%   N)rz   Ú
ValueErrorÚnew_fileÚdeleted_fileÚcopied_fileÚrenamed_fileÚa_blobÚb_blob)rQ   rz   Údiffidxs      r2   Úiter_change_typezDiffIndex.iter_change_type/  sÈ   è ø€ ð ˜d×.Ñ.Ñ.ÜÐ6¸ÑDÓEÐEàò 	ˆGØ×"Ñ" kÒ1Ø“Ø Ò#¨×(8Ò(8Ø“Ø Ò#¨×(<Ò(<Ø“Ø Ò#¨×(;Ò(;Ø“Ø Ò#¨×(<Ò(<Ø“Ø Ó#¨¯«¸7¿>»>ÈgÏnÉnÐ`g×`nÑ`nÓNnØ“ñ	ùs   ‚BCÂCÂ#CÂ0CÃ
CN)r*   r+   r,   r-   rz   r   r   rs   ÚLit_change_typer   rw   r„   r0   r1   r2   r   r     s=   … ñð Db€K�˜'Ð">Ñ?Ñ@Óaðð¨Oð ÀÈÑ@Pô r1   r   c                    óx  — e Zd ZdZ ej
                  dej                  ej                  z  «      ZdZ	dZ
dZdddee   d	ee   d
eeedf   deeedf   deeedf   deeedf   dedededee   dee   deeedf   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edee   fd„«       Zedee   fd„«       Zedee   fd „«       Zedee   fd!„«       Zedefd"„«       Zedefd#„«       Ze d$ed%ed&edee   fd'„«       Z!e ddd(ed)   de"d    fd*„«       Z#e$d+eddd,e"d    ddfd-„«       Z%e d/d.„«       Z&y)0r   a¼  A Diff contains diff information between two Trees.

    It contains two sides a and b of the diff. Members are prefixed with "a" and "b"
    respectively to indicate that.

    Diffs keep information about the changed blob objects, the file mode, renames,
    deletions and new files.

    There are a few cases where ``None`` has to be expected as member variable value:

    New File::

        a_mode is None
        a_blob is None
        a_path is None

    Deleted File::

        b_mode is None
        b_blob is None
        b_path is None

    Working Tree Blobs:

        When comparing to working trees, the working tree blob will have a null hexsha
        as a corresponding object does not yet exist. The mode will be null as well. The
        path will be available, though.

        If it is listed in a diff, the working tree version of the file must differ from
        the version in the index or tree, and hence has been modified.
    s  
                                ^diff[ ]--git
                                    [ ](?P<a_path_fallback>"?[ab]/.+?"?)[ ](?P<b_path_fallback>"?[ab]/.+?"?)\n
                                (?:^old[ ]mode[ ](?P<old_mode>\d+)\n
                                   ^new[ ]mode[ ](?P<new_mode>\d+)(?:\n|$))?
                                (?:^similarity[ ]index[ ]\d+%\n
                                   ^rename[ ]from[ ](?P<rename_from>.*)\n
                                   ^rename[ ]to[ ](?P<rename_to>.*)(?:\n|$))?
                                (?:^new[ ]file[ ]mode[ ](?P<new_file_mode>.+)(?:\n|$))?
                                (?:^deleted[ ]file[ ]mode[ ](?P<deleted_file_mode>.+)(?:\n|$))?
                                (?:^similarity[ ]index[ ]\d+%\n
                                   ^copy[ ]from[ ].*\n
                                   ^copy[ ]to[ ](?P<copied_file_name>.*)(?:\n|$))?
                                (?:^index[ ](?P<a_blob_id>[0-9A-Fa-f]+)
                                    \.\.(?P<b_blob_id>[0-9A-Fa-f]+)[ ]?(?P<b_mode>.+)?(?:\n|$))?
                                (?:^---[ ](?P<a_path>[^\t\n\r\f\v]*)[\t\r\f\v]*(?:\n|$))?
                                (?:^\+\+\+[ ](?P<b_path>[^\t\n\r\f\v]*)[\t\r\f\v]*(?:\n|$))?
                            Ú(0000000000000000000000000000000000000000s                       )r�   r‚   Úa_modeÚb_modeÚ	a_rawpathÚ	b_rawpathr}   r~   r   Úraw_rename_fromÚraw_rename_torg   rz   ÚscorerN   r!   rŠ   r‹   Ú	a_blob_idNÚ	b_blob_idrˆ   r‰   r}   r~   r   rŒ   r�   rg   rz   rŽ   r4   c                 ót  — |�t        |t        «      sJ ‚|�t        |t        «      sJ ‚|| _        || _        |rt	        |«      nd | _        |rt	        |«      nd | _        |rX|rV|j                  D ]G  }|j                  |j                  t        d«      k(  sŒ'|j                  «       r|j                  «       } n |  |�|| j                  k(  rd | _        n1t        |t!        |«      | j
                  | j"                  ¬«      | _        |  |�|| j                  k(  rd | _        n1t        |t!        |«      | j                  | j&                  ¬«      | _        || _        |	| _        |
| _        |�t        |t        «      sJ ‚|�t        |t        «      sJ ‚|xs d | _        |xs d | _        || _        || _        || _        y )NrI   )Úmoder>   )rc   r:   rŠ   r‹   r   rˆ   r‰   Ú
submodulesr>   Údecoder
   Úmodule_existsÚmoduleÚNULL_HEX_SHAr�   r   r   Úa_pathr‚   Úb_pathr}   r~   r   rŒ   r�   rg   rz   rŽ   )rQ   rN   rŠ   r‹   r�   r�   rˆ   r‰   r}   r~   r   rŒ   r�   rg   rz   rŽ   Ú	submodules                    r2   Ú__init__zDiff.__init__�  sŸ  € ð$ Ð ¤J¨y¼%Ô$@Ð@Ð@ØÐ ¤J¨y¼%Ô$@Ð@Ð@Ø"ˆŒØ"ˆŒá17”o fÔ-¸TˆŒÙ17”o fÔ-¸TˆŒñ ‘IØ!Ÿ_™_ò �	Ø—>‘> Y×%5Ñ%5´f¸iÓ%HÓHØ ×.Ñ.Ô0Ø(×/Ñ/Ó1˜Ùð	ñ 	ØÐ 	¨T×->Ñ->Ò >ØˆD�Kä˜t¤Z°	Ó%:ÀÇÁÐSW×S^ÑS^Ô_ˆDŒKáØÐ 	¨T×->Ñ->Ò >ØˆD�Kä˜t¤Z°	Ó%:ÀÇÁÐSW×S^ÑS^Ô_ˆDŒKà&ˆŒØ".ˆÔØ!,ˆÔð Ð&¬*°_ÄeÔ*LÐLÐLØÐ$¬
°=Ä%Ô(HÐHÐHØ.Ò6°$ˆÔØ*Ò2¨dˆÔàˆŒ	Ø9DˆÔØˆ�
r1   rS   c                 ó\   — | j                   D ]  }t        | |«      t        ||«      k7  sŒ y y)NFT)rr   Úgetattr)rQ   rS   Únames      r2   Ú__eq__zDiff.__eq__Ú  s3   € Ø—N‘Nò 	ˆDÜ�t˜TÓ"¤g¨e°TÓ&:Ó:Ùð	ð r1   c                 ó   — | |k(   S rZ   r0   )rQ   rS   s     r2   Ú__ne__zDiff.__ne__á  s   € Ø˜E‘MÐ"Ð"r1   c                 óR   ‡ — t        t        ˆ fd„‰ j                  D «       «      «      S )Nc              3   ó6   •K  — | ]  }t        ‰|«      –— Œ y ­wrZ   )r�   )r[   ÚnrQ   s     €r2   r]   z Diff.__hash__.<locals>.<genexpr>å  s   øè ø€ ÒC¨qœ' $¨×*ÑCùs   ƒ)Úhashrd   rr   ©rQ   s   `r2   Ú__hash__zDiff.__hash__ä  s   ø€ Ü”EÓC°D·N±NÔCÓCÓDÐDr1   c                 ó�  — d}| j                   r|| j                   j                  z  }n%| j                  r|| j                  j                  z  }d}d }d}t        | j                   | j                  fd«      D ]C  \  }}|rd||j                  |j
                  fz  }nd|z  }t        t        |«      |«      }||z  }ŒE |dd|z  z   z  }| j                  r|d	z  }| j                  r|d
z  }| j                  r|d| j                  ›d| j                  ›�z  }| j                  r|d| j                  z  z  }| j                  r|d| j                  z  z  }| j                  rS|dz  }	 |t!        | j                  t"        «      r| j                  j%                  t&        «      n| j                  z  }|dz  }||z   S # t(        $ r |dz  }Y Œw xY w)Nz%sÚ r   )ÚlhsÚrhsz
%s: %o | %sz	
%s: Noneú
ú=z
file deleted in rhsz
file added in rhsz
file z copied from z
file renamed from %rz
file renamed to %rz
---zOMITTED BINARY DATA)r�   r>   r‚   Úzipr’   ÚhexshaÚmaxÚlenr~   r}   r   r™   r˜   Úrename_fromÚ	rename_torg   rc   r:   r”   r
   ÚUnicodeDecodeError)rQ   ÚhÚmsgÚlineÚline_lengthÚbr¤   s          r2   Ú__str__zDiff.__str__ç  s¾  € ØˆØ�;Š;Ø�—‘×!Ñ!Ñ!‰AØ�[Š[Ø�—‘×!Ñ!Ñ!ˆAàˆØˆØˆÜ˜Ÿ™ d§k¡kÐ2°NÓCò 	‰DˆAˆqÙØ&¨!¨Q¯V©V°Q·X±XÐ)>Ñ>‘à# aÑ'�äœc $›i¨Ó5ˆKØ�4‰K‰Cð	ð 	
ˆT�C˜+Ñ%Ñ%Ñ%ˆà×ÒØÐ*Ñ*ˆCØ�=Š=ØÐ(Ñ(ˆCØ×ÒÙ°·³¸d¿kºkÐJÑJˆCØ×ÒØÐ+¨d×.>Ñ.>Ñ>Ñ>ˆCØ�>Š>ØÐ)¨D¯N©NÑ:Ñ:ˆCØ�9Š9Ø�7‰NˆCð-Ø´:¸d¿i¹iÌÔ3O�t—y‘y×'Ñ'¬Ô/ÐUY×U^ÑU^Ñ^�ð �7‰NˆCð �3‰wˆøô &ò -ØÐ,Ñ,’ð-ús   Å"AF4 Æ4GÇGc                 ó^   — | j                   r | j                   j                  t        d«      S d S ©NrI   )rŠ   r”   r
   r¦   s    r2   r˜   zDiff.a_path  ó$   € à;?¿>º>ˆt�~‰~×$Ñ$¤V¨YÓ7ÐSÈtÐSr1   c                 ó^   — | j                   r | j                   j                  t        d«      S d S r¼   )r‹   r”   r
   r¦   s    r2   r™   zDiff.b_path  r½   r1   c                 ó^   — | j                   r | j                   j                  t        d«      S d S r¼   )rŒ   r”   r
   r¦   s    r2   r²   zDiff.rename_from  s)   € àAE×AUÒAUˆt×#Ñ#×*Ñ*¬6°9Ó=Ð_Ð[_Ð_r1   c                 ó^   — | j                   r | j                   j                  t        d«      S d S r¼   )r�   r”   r
   r¦   s    r2   r³   zDiff.rename_to   s)   € à?C×?QÒ?Qˆt×!Ñ!×(Ñ(¬°Ó;Ð[ÐW[Ð[r1   c                 óR   — t        j                  dt        d¬«       | j                  S )a  Deprecated, use :attr:`renamed_file` instead.

        :return:
            ``True`` if the blob of our diff has been renamed

        :note:
            This property is deprecated.
            Please use the :attr:`renamed_file` property instead.
        z9Diff.renamed is deprecated, use Diff.renamed_file insteadrF   )Ú
stacklevel)ÚwarningsÚwarnÚDeprecationWarningr€   r¦   s    r2   ÚrenamedzDiff.renamed$  s'   € ô 	�‰ØGÜØõ	
ð
 × Ñ Ð r1   c                 ó4   — | j                   | j                  k7  S )z::return: ``True`` if the blob of our diff has been renamed)r²   r³   r¦   s    r2   r€   zDiff.renamed_file6  s   € ð ×Ñ 4§>¡>Ñ1Ð1r1   Ú
path_matchÚrename_matchÚpath_fallback_matchc                 óV   — |rt        |«      S |rt        |d¬«      S |rt        |«      S y )NF)r?   )rL   )ÚclsrÈ   rÉ   rÊ   s       r2   Ú_pick_best_pathzDiff._pick_best_path;  s2   € áÜ˜zÓ*Ð*áÜ˜|¸5ÔAÐAáÜÐ2Ó3Ð3àr1   ro   )r   zGit.AutoInterruptc                 óœ  — g }t        ||j                  dt        d¬«       dj                  |«      }t	        «       }d}d}d\  }}	d\  }
}| j
                  j                  |«      D �]D  }|j                  «       \  }}}}}}}}}}}}}}	t        |«      t        |«      t        |«      }}}| j                  |||«      }| j                  |	||«      }	|�)||j                  «       |j                  «        |d   _        |xs |xs |xr
 |xs |xs |}
|xs |xs
 |xs |	xr |
}|j                  t        |||	|xr |j                  t        «      |xr |j                  t        «      |
xr |
j                  t        «      |xr |j                  t        «      |||||ddd«      «       |}|}�ŒG |r|r||j                  «       d |d   _        |S )a‰  Create a new :class:`DiffIndex` from the given process output which must be
        in patch format.

        :param repo:
            The repository we are operating on.

        :param proc:
            :manpage:`git-diff(1)` process to read from
            (supports :class:`Git.AutoInterrupt <git.cmd.Git.AutoInterrupt>` wrapper).

        :return:
            :class:`DiffIndex`
        NF©Údecode_streamsr1   )NNrB   )r	   ra   r   Újoinr   Ú	re_headerÚfinditerÚgroupsrv   rÍ   ÚendÚstartrg   r   r”   r
   )rÌ   rN   ro   Ú	text_listÚtextrq   Úprevious_headerÚheaderr˜   r™   rˆ   r‰   Ú_headerÚa_path_fallbackÚb_path_fallbackÚold_modeÚnew_moder²   r³   Únew_file_modeÚdeleted_file_modeÚcopied_file_namer�   r�   r}   r~   r   s                              r2   rk   zDiff._index_from_patch_formatH  s  € ð" "$ˆ	Ü˜d I×$4Ñ$4°dÔ<LÐ]bÕcð �x‰x˜	Ó"ˆÜ&›[ˆØ59ˆØ,0ˆØ#‰ˆ�Ø#‰ˆ�Ø—}‘}×-Ñ-¨dÓ3ó :	ˆGð  —‘Ó ñØØØØØØØØ!Ø ØØØØØô �]Ó#ÜÐ&Ó'ÜÐ%Ó&ð %0�lˆHð ×(Ñ(¨°¸oÓNˆFØ×(Ñ(¨°¸OÓLˆFð Ð*Ø!% o×&9Ñ&9Ó&;¸g¿m¹m»oÐ!N��b‘	”ð
 ÒhÐ!2Òh°vÒ7gÀ6ÒCfÈXÒCfÐYfˆFØÒO˜xÒO¨=ÒO¸VÒ=NÈˆFØ�L‰LÜØØØØÒ: )×"2Ñ"2´6Ó":ØÒ: )×"2Ñ"2´6Ó":ØÒ4˜vŸ}™}¬VÓ4ØÒ4˜vŸ}™}¬VÓ4ØØ ØØØØØØóôð( &ˆOØŠFðu:	ñx ‘VØ! &§*¡*£, .Ð1ˆE�"‰IŒNð ˆr1   Úlines_bytesrq   c                 óÄ  — | j                  t        «      }|j                  d«      \  }}}|j                  d«      D �]¡  }|sŒ|j                  d«      \  }}}|j	                  d«      }|j                  d d«      \  }}	}
}}t        t        |d   «      }dj                  |dd  «      }|j                  «       rt        |«      nd }|j                  d«      }|j                  t        «      }|j                  t        «      }d	}d	}d	}d }d }|d
k(  rd }d}n |dk(  rd }
d}n–|dk(  rBd}|j                  dd«      \  }}|j                  t        «      }|j                  t        «      }nO|dk(  rD|j                  dd«      \  }}|j                  t        «      }|j                  t        «      }||}}n|dk(  r	 t        ||||
|||	|||||d||«      }|j                  |«       �Œ¤ y )Nú:z :ú é   r   r©   r6   r¬   Fr#   Tr"   r$   r&   r'   )r”   r
   Ú	partitionÚsplitÚrstripr   r…   rÑ   Úisdigitr9   ÚstripÚencoder   ra   )rã   rN   rq   ÚlinesÚ_r·   Úmetar>   rÞ   rß   r�   r�   Ú_change_typerz   Ú	score_strrŽ   r˜   r™   r~   r}   r   r²   r³   Ú
a_path_strÚ
b_path_strrg   s                             r2   Ú_handle_diff_linezDiff._handle_diff_line¥  s  € à×"Ñ"¤6Ó*ˆð —o‘o cÓ*‰ˆˆ1ˆeà—K‘K Ó(ó @	ˆDÙàØ ŸN™N¨6Ó2‰MˆD�!�TØ—;‘;˜vÓ&ˆDð FJÇZÁZÐPTÐVWÓEXÑBˆH�h 	¨9°lô ,0´ÀÈaÁÓ+QˆKØŸ™ ¨Q¨RÐ 0Ó1ˆIØ&/×&7Ñ&7Ô&9”C˜	”N¸tˆEØ—:‘:˜dÓ#ˆDØ—[‘[¤Ó(ˆFØ—[‘[¤Ó(ˆFØ ˆLØˆHØˆKØˆKØˆIð ˜cÒ!Ø �	Ø#‘Ø Ò#Ø �	Ø‘Ø Ò#Ø"�Ø)-¯©°F¸AÓ)>Ñ&�
˜JØ#×*Ñ*¬6Ó2�Ø#×*Ñ*¬6Ó2‘Ø Ò#Ø)-¯©°F¸AÓ)>Ñ&�
˜JØ#×*Ñ*¬6Ó2�Ø#×*Ñ*¬6Ó2�Ø)/°˜Y‘Ø Ò#àô ØØØØØØØØØØØØØØØóˆDð" �L‰L˜ÖñA@	r1   c                 óR   ‡ ‡‡— t        «       Št        |ˆ ˆˆfd„dt        d¬«       ‰S )a!  Create a new :class:`DiffIndex` from the given process output which must be
        in raw format.

        :param repo:
            The repository we are operating on.

        :param proc:
            Process to read output from.

        :return:
            :class:`DiffIndex`
        c                 ó*   •— ‰j                  | ‰‰«      S rZ   )rõ   )ÚbytrÌ   rq   rN   s    €€€r2   ú<lambda>z-Diff._index_from_raw_format.<locals>.<lambda>  s   ø€ ˜×-Ñ-¨c°4¸Ó?€ r1   NFrÏ   )r   r	   r   )rÌ   rN   ro   rq   s   `` @r2   rl   zDiff._index_from_raw_formatî  s*   ú€ ô" '›[ˆÜØÝ?ØÜØ õ	
ð ˆr1   )rN   r!   ro   r   r4   rW   )'r*   r+   r,   r-   ÚreÚcompileÚVERBOSEÚ	MULTILINErÒ   r—   ÚNULL_BIN_SHArr   r   r:   r   ru   rv   r…   r9   r›   ÚobjectrŸ   r¡   r§   rº   Úpropertyr˜   r™   r²   r³   rÆ   r€   ÚclassmethodrÍ   r   rk   Ústaticmethodrõ   rl   r0   r1   r2   r   r   P  s  „ ñðB �—
‘
ð	 ð$ 	�
‰
�R—\‘\Ñ!ó'€Ið. €LØ€Lð€Ið";àð;ð ˜E‘?ð;ð ˜E‘?ð	;ð
 ˜˜e TÐ)Ñ*ð;ð ˜˜e TÐ)Ñ*ð;ð �e˜S $Ð&Ñ'ð;ð �e˜S $Ð&Ñ'ð;ð ð;ð ð;ð ð;ð " %™ð;ð   ‘ð;ð �C˜ Ð$Ñ%ð;ð ˜oÑ.ð;ð  ˜‰}ð!;ð" 
ó#;ðz˜Fð  tó ð#˜Fð # tó #ðE˜#ó Eð+˜ó +ðZ ðT˜ ™ò Tó ðTð ðT˜ ™ò Tó ðTð ð`˜X c™]ò `ó ð`ð ð\˜8 C™=ò \ó ð\ð ð!˜ò !ó ð!ð" ð2˜dò 2ó ð2ð ð
¨ð 
¸eð 
ÐZ_ð 
ÐdlÐmrÑdsò 
ó ð
ð ðZ¨Fð Z¸%Ð@\Ñ:]ð ZÐbkÐlrÑbsò Zó ðZðx ðF uð F°Fð FÀ9ÈVÑCTð FÐY]ò Fó ðFðP òó ñr1   )T):Ú__all__r.   rú   rÃ   Úgit.cmdr	   Ú
git.compatr
   Úgit.objects.blobr   Úgit.objects.utilr   Úgit.utilr   r   Útypingr   r   r   r   r   r   r   r   r   r   r   Ú	git.typesr   r   Ú
subprocessr   r   Úgit.objects.baser   Úgit.objects.commitr   Úgit.objects.treer    Úgit.repo.baser!   r…   ÚuniqueÚEnumr   r   rs   r   rû   rJ   r:   r=   rv   rL   r   rw   r   r   r0   r1   r2   ú<module>r     sD  ðð SÒ
R€ã Û 	Û å )Ý Ý !Ý ,ß 1÷÷ ÷ ñ ÷ (áÝ åÝ,Ý)Ý%Ý"àÐ;Ñ<€ð
 ‡�ô�D—I‘Ió ó ðð8 /<×.EÑ.E€	ˆ7�=×*Ñ*Ñ+Ó Eðð '4×&9Ñ&9€€wˆ}×"Ñ"Ñ#Ó 9ðð �—‘Ð,Ó-€ð˜%ð  Eó ñ�eð ¨Dð ¸HÀU¹Oó ÷ ^ñ ^ñB 
� Ô	(€ô.��V‘ô .÷dxò xr1   