ok

Mini Shell

Direktori : /opt/cloudlinux/venv/lib/python3.11/site-packages/git/index/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/git/index/__pycache__/base.cpython-311.pyc

�

�܋f�����ddlmZddlZddlZddlmZddlZddlmZddl	Z	ddl
Z
ddlmZm
Z
ddlmZmZmZmZddlmZmZmZmZmZddlmZdd	lmZmZmZmZm Z m!Z!m"Z"dd
l#m$Z$ddl%m&Z&ddl'm(Z)ddl*m+Z,dd
l-m.Z.m/Z/m0Z0m1Z1m2Z2m3Z3m4Z4m5Z5ddl6m7Z7m8Z8m9Z9ddl:m;Z;m<Z<m=Z=m>Z>ddl?m@Z@mAZAmBZBmCZCmDZDmEZEmFZFmGZGmHZHmIZImJZJmKZKmLZLmMZMddlNmOZOmPZPeJrddl	mQZQddlRmSZSddlTmUZUddlmVZVeMeeeWeXfZYdZZGd�dee)j[e��Z\dS)�)�	ExitStackN)�BytesIO)�S_ISLNK)�force_bytes�defenc)�GitCommandError�
CheckoutError�GitError�InvalidGitRepositoryError)�Blob�	Submodule�Tree�Object�Commit)�Serializable)�	LazyMixin�LockedFD�join_path_native�file_contents_ro�to_native_path_linux�unbare_repo�
to_bin_sha)�IStream)�MemoryDB�)�	entry_key�write_cache�
read_cache�aggressive_tree_merge�write_tree_from_cache�stat_mode_to_index_mode�S_IFGITLINK�run_commit_hook)�BaseIndexEntry�
IndexEntry�	StageType)�TemporaryFileSwap�post_clear_cache�
default_index�git_working_dir)�Any�BinaryIO�Callable�Dict�IO�Iterable�Iterator�List�NoReturn�Sequence�
TYPE_CHECKING�Tuple�Type�Union)�
Commit_ish�PathLike)�Popen)�Repo)�	Reference)�Actor)�	IndexFiler	r&c�x��eZdZdZdZdZeZdhdddeedfddfd	�Z	d
e
ddf�fd�Zdefd�Ze
defd
���Zdid�Zdeddfd�Zdeefd�Zdjdededdfd�Z		dkdedefdeddfd�Zeedhdededefddfd�����Zedddee
efddfd���Zedddededdfd���Z e!ddde"ede#efd ���Z$	dld"d#d$ed%ed&e%d'e&fd(e%eeegdfd)edede
ffd*�Z'd+�fd,e%e(e)e*fgefde#e(e)e*ffd-�Z+de,eee(e)e*fffd.�Z-ed/ee.ee)fde(ee)ffd0���Z/d1e#e*ddfd2�Z0dmd3�Z1defd4�Z2d5eee
d6e3d7fdeee
d6e3d7ffd8�Z4d9edefd:�Z5d;e"eee*e.d<fde(eeee.ffd=�Z6d$ed(e%de.fd>�Z7e!e8dee
d?e%d(e%d@ee.dee.f
dA�����Z9d!dB�dd!dfd;e"eee*e.d<fdCed(e%d?ee%d'efdfdDedEedee.fdF�Z:d;eee"eee.e*e;ffdeefdG�Z<ee	djd;e"eee*e.d<fdHededee
fdI�����Z=ee	djd;e"eee*e.d<fdJededee(e
e
ffdK�����Z>							dndLe
dMee?dfdNedOedPdQedPdRee@j@e
dfdSee@j@e
dfdTedeAfdU�ZBdLe
ddfdV�ZCdidW�ZDde
fdX�ZEde
fdY�ZFdjd"dZd[edeGfd\�ZHeddd]�fdedeIefdCed(e%dedede#ee"eff
d^���ZJe				dod`eeAdae
fdHededeIefdNededdfdb���ZKeLjMjNddfdcee3d7dddee
dfdeeeee(ed'fdfdfededeLjOf
�fdg�
ZP�xZQS)pr?ad
    Implements an Index that can be manipulated using a native implementation in
    order to save git command function calls wherever possible.

    It provides custom merging facilities allowing to merge without actually changing
    your index or your working tree. This way you can perform own test-merges based
    on the index only without having to deal with the working copy. This is useful
    in case of partial working trees.

    ``Entries``

    The index contains an entries dict whose keys are tuples of type IndexEntry
    to facilitate access.

    You may read the entries dict or manipulate it using IndexEntry instance, i.e.::

        index.entries[index.entry_key(index_entry_instance)] = index_entry_instance

    Make sure you use index.write() once you are done manipulating the index directly
    before operating on it using the git command)�repo�version�entries�_extension_data�
_file_path�NrAr<�	file_path�returnc�p�||_|j|_d|_|p|���|_dS)aInitialize this Index instance, optionally from the given ``file_path``.
        If no file_path is given, we will be created from the current index file.

        If a stream is not given, the stream will be initialized from the current
        repository's index on demand.�N)rA�_VERSIONrBrD�_index_pathrE)�selfrArGs   �_/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/git/index/base.py�__init__zIndexFile.__init__|s8����	��}���"���$-�$C��1A�1A�1C�1C����rJ�attrc���|dkr�	tj|jtj��}n#t$ri|_YdSwxYw	t
|dd���}tj|��n#tj|��wxYw|�|��dStt|���|��dS)NrCT)�stream�
allow_mmap)�os�openrE�O_RDONLY�OSErrorrCr�close�_deserialize�superr?�_set_cache_)rMrP�fdrR�	__class__s    �rNr[zIndexFile._set_cache_�s�����9���
��W�T�_�b�k�:�:�����
�
�
�MO����t�t�
����
�)�"�T�d�K�K�K�����������������������f�%�%�%�%�%��)�T�"�"�.�.�t�4�4�4�4�4s�$.�A�A�A.�.Bc�l�|jjrt|jjd��Std���)N�indexz)No git directory given to join index path)rA�git_dirrr�rMs rNrLzIndexFile._index_path�s4���9��	O�#�D�I�$5�w�?�?�?�!�"M�N�N�NrJc��|jS)z3:return: Path to the index file we are representing)rEras rN�pathzIndexFile.path�s����rJc�.�	|`dS#t$rYdSwxYw)z5Safely clear the entries cache so it can be recreatedN)rC�AttributeErrorras rN�_delete_entries_cachezIndexFile._delete_entries_cache�s2��	�������	�	�	��D�D�	���s��
�rRc�L�t|��\|_|_|_}|S)zEInitialize this instance with index values read from the given stream)rrBrCrD)rMrR�_conten_shas   rNrYzIndexFile._deserialize�s%��HR�SY�HZ�HZ�E���d�l�D�$8�+��rJc�T�t|j���d����S)zK:return: list of entries, in a sorted fashion, first by path, then by stagec��|j|jfS�N�rc�stage��es rN�<lambda>z+IndexFile._entries_sorted.<locals>.<lambda>�s��A�F�A�G�;L�rJ)�key)�sortedrC�valuesras rN�_entries_sortedzIndexFile._entries_sorted�s'���d�l�)�)�+�+�1L�1L�M�M�M�MrJF�ignore_extension_datac�f�|���}|j}|rd}t|||��|Srk)rtrDr)rMrRrurC�extension_datas     rN�
_serializezIndexFile._serialize�s?���&�&�(�(���-�� �	"�!�N��G�V�^�4�4�4��rJc�H�|jt|p|j��}|�dd���}d}	|�||��d}|s|���n#|s|���wwxYw|���|�	||_dSdS)a�Write the current state to our file path or to the given one

        :param file_path:
            If None, we will write to our stored file path from which we have
            been initialized. Otherwise we write to the given file path.
            Please note that this will change the file_path of this index to
            the one you gave.

        :param ignore_extension_data:
            If True, the TREE type extension data read in the index will not
            be written to disk. NOTE that no extension data is actually written.
            Use this if you have altered the index and
            would like to use git-write-tree afterwards to create a tree
            representing your written changes.
            If this data is present in the written index, git-write-tree
            will instead write the stored/cached tree.
            Alternatively, use IndexFile.write_tree() to handle this case
            automatically

        :return: self  # does it? or returns None?T)�writerRFN)rCrrErUrx�rollback�commit)rMrGru�lfdrR�oks      rNrzzIndexFile.write�s���8	
����y�3�D�O�4�4������T��2�2��
��	��O�O�F�$9�:�:�:��B��
����������
��������
����	�
�
����� �'�D�O�O�O�!� s�A'�'B�rhs�basec��gd�}|�|�|��|�|��|jj�|��|S)a�Merge the given rhs treeish into the current index, possibly taking
        a common base treeish into account.

        As opposed to the :func:`IndexFile.from_tree` method, this allows you to use an already
        existing tree as the left side of the merge

        :param rhs:
            treeish reference pointing to the 'other' side of the merge.

        :param base:
            optional treeish reference pointing to the common base of 'rhs' and
            this index which equals lhs

        :return:
            self ( containing the merge and possibly unmerged entries in case of
            conflicts )

        :raise GitCommandError:
            If there is a merge conflict. The error will
            be raised at the first conflicting path. If you want to have proper
            merge resolution to be done by yourself, you have to commit the changed
            index ( or make a valid tree from it ) and retry with a three-way
            index.from_tree call.)�--aggressivez-iz-m)�appendrA�git�	read_tree)rMrr��argss    rN�
merge_treezIndexFile.merge_tree�sW��:+G�*F�*F�����K�K��������C�����	�
����%�%�%��rJ�tree_shac���d�|D��}t|j|��}||��}ttd�|D��d�|D������}||_|S)a�Merge the given treeish revisions into a new index which is returned.
        This method behaves like git-read-tree --aggressive when doing the merge.

        :param repo: The repository treeish are located in.

        :param tree_sha:
            20 byte or 40 byte tree sha or tree objects

        :return:
            New IndexFile instance. Its path will be undefined.
            If you intend to write such a merged Index, supply an alternate file_path
            to its 'write' method.c�F�g|]}tt|������S�)r�str)�.0�ts  rN�
<listcomp>z!IndexFile.new.<locals>.<listcomp>$s&��&L�&L�&L�a�z�#�a�&�&�'9�'9�&L�&L�&LrJc3�2K�|]}|j|jfV��dSrkrl�r�ros  rN�	<genexpr>z IndexFile.new.<locals>.<genexpr>+s+����9�9�q�!�&�!�'�"�9�9�9�9�9�9rJc3�>K�|]}tj|��V��dSrk)r%�	from_baser�s  rNr�z IndexFile.new.<locals>.<genexpr>,s-����?�?�Q��%�a�(�(�?�?�?�?�?�?rJ)r�odb�dict�ziprC)�clsrAr��tree_sha_bytes�base_entries�instrCs       rN�newz
IndexFile.news���'M�&L�8�&L�&L�&L��,�T�X�~�F�F���s�4�y�y��:>��9�9�L�9�9�9�?�?�,�?�?�?�
�
�;
�;
������rJ�treeish�kwargsc	���t|��dkst|��dkrtdt|��z���g}t|��dkr*|�d��|�d��t��5}|�tj|j�����}|�d|jz��|�	|��|�tt|jd	������|jj
|i|��|||j��}|j|cd
d
d
��S#1swxYwYd
S)aSMerge the given treeish revisions into a new index which is returned.
        The original index will remain unaltered

        :param repo:
            The repository treeish are located in.

        :param treeish:
            One, two or three Tree Objects, Commits or 40 byte hexshas. The result
            changes according to the amount of trees.
            If 1 Tree is given, it will just be read into a new index
            If 2 Trees are given, they will be merged into a new index using a
            two way merge algorithm. Tree 1 is the 'current' tree, tree 2 is the 'other'
            one. It behaves like a fast-forward.
            If 3 Trees are given, a 3-way merge will be performed with the first tree
            being the common ancestor of tree 2 and tree 3. Tree 2 is the 'current' tree,
            tree 3 is the 'other' one

        :param kwargs:
            Additional arguments passed to git-read-tree

        :return:
            New IndexFile instance. It will point to a temporary index location which
            does not exist anymore. If you intend to write such a merged Index, supply
            an alternate file_path to its 'write' method.

        :note:
            In the three-way merge case, --aggressive will be specified to automatically
            resolve more cases in a commonly correct manner. Specify trivial=True as kwarg
            to override that.

            As the underlying git-read-tree command takes into account the current index,
            it will be temporarily moved out of the way to assure there are no unsuspected
            interferences.r�z.Please specify between 1 and 3 treeish, got %irz--resetr�)�dirz--index-output=%sr_N)�len�
ValueErrorr�r�
enter_context�tempfile�NamedTemporaryFiler`�name�extendr'rr�r�rC)r�rAr�r��arg_list�stack�	tmp_indexr_s        rN�	from_treezIndexFile.from_tree3s���F�w�<�<�1����G���q� 0� 0��M�PS�T[�P\�P\�\�]�]�]�.0���w�<�<�!����O�O�I�&�&�&��O�O�N�+�+�+�
�[�[�	�E��+�+�H�,G�D�L�,Y�,Y�,Y�Z�Z�I��O�O�/�)�.�@�A�A�A��O�O�G�$�$�$�
��� 1�2B�4�<�QX�2Y�2Y� Z� Z�[�[�[��D�H���3�F�3�3�3��C��i�n�-�-�E��M�M��	�	�	�	�	�	�	�	�	�	�	�	����	�	�	�	�	�	s�CE � E$�'E$rM�pathsc	#�K�dtdtfd�}t|jj��}|t
jz}|D�]�}t|��}tj|��stj	||��}	tj
|��}t|j��r|�
|d��V��}n#t$rYnwxYwt
j�|��sud|vsd|vsd|vrit#j|��}||vrQ|�t#j|����D]'}	t|	���
|d��V��(��"	tj||���D]6\}
}}|D]-}
tj	|
�
|d��|
��V��.�7��r#t$r|�
|d��V�Y���wxYwd	S)
aExpand the directories in list of paths to the corresponding paths accordingly,

        Note: git will add items multiple times even if a glob overlapped
        with manually specified paths or if paths where specified multiple
        times - we respect that and do not prunerorHc��|�rkr�rns rN�	raise_excz/IndexFile._iter_expand_paths.<locals>.raise_exc~s���GrJ��?�*�[)�onerrorN)�	Exceptionr3r�rA�working_tree_dirrT�sep�osp�isabs�join�lstatr�st_mode�replacerWrc�exists�glob�_iter_expand_paths�walk)rMr�r��r�rsrc�abs_path�st�resolved_paths�f�root�_dirs�files�	rela_files              rNr�zIndexFile._iter_expand_pathsvsK����	��	�x�	�	�	�	�
��	�*�+�+��
���Z���(	/�(	/�D��4�y�y�H��9�X�&�&�
-��8�A�t�,�,��
��X�h�'�'��
�2�:�&�&��"�*�*�2�r�2�2�2�2�2����	�
�
�
���
�����7�>�>�(�+�+�
�����C�8�O�O�WZ�^f�Wf�Wf�!%��8�!4�!4���>�1�1�!�4�4�T�Y�x�5H�5H�I�I�5�5��!�!�f�f�n�n�R��4�4�4�4�4�4��	
/�*,�'�(�I�*N�*N�*N�H�H�&�D�%��%*�H�H�	�!�h�t�|�|�B��';�';�Y�G�G�G�G�G�G�H�H���
/�
/�
/��&�&�r�2�.�.�.�.�.�.�.�
/����M(	/�(	/s%�;B=�=
C
�	C
�"A
F1�1"G�GT�procr;�filepath�item�fmakeexc.�	fprogress�read_from_stdoutc��||d|��d}|j�m	|j�d|z�t����n#t$r}|��|�d}~wwxYw|j���|r2|j�+|j������}||d|��|S)aiWrite path to proc.stdin and make sure it processes the item, including progress.

        :return: stdout string
        :param read_from_stdout: if True, proc.stdout will be read after the item
            was sent to stdin. In that case, it will return None
        :note: There is a bug in git-update-index that prevents it from sending
            reports just in time. This is why we have a version that tries to
            read stdout and one which doesn't. In fact, the stdout is not
            important as the piped-in files are processed anyway and just in time
        :note: Newlines are essential here, gits behaviour is somewhat inconsistent
            on this depending on the version, hence we try our best to deal with
            newlines carefully. Usually the last newline will not be sent, instead
            we will close stdin to break the pipe.FNz%s
T)	�stdinrz�encoder�IOError�flush�stdout�readline�strip)	rMr�r�r�r�r�r��rvalros	         rN�_write_path_to_stdinzIndexFile._write_path_to_stdin�s���.	�	�(�E�4�(�(�(�!%���:�!�
(��
� � �&�8�"3�!;�!;�F�!C�!C�D�D�D�D���
(�
(�
(��h�j�j�a�'�����
(����
�J�������	2��� 7��;�'�'�)�)�/�/�1�1�D��	�(�D�$�'�'�'��s�5A�
A(�A#�#A(c��dS)NTr��r�s rNrpzIndexFile.<lambda>�s��d�rJ�	predicatec#�K�|j���D]@}|�|j��}|j|_|j|f}||��r|V��AdS)aR
        :return: Iterator yielding tuples of Blob objects and stages, tuple(stage, Blob)

        :param predicate:
            Function(t) returning True if tuple(stage, Blob) should be yielded by the
            iterator. A default filter, the BlobFilter, allows you to yield blobs
            only if they match a given list of paths.N)rCrs�to_blobrA�sizerm)rMr��entry�blob�outputs     rN�
iter_blobszIndexFile.iter_blobs�ss�����\�(�(�*�*�	�	�E��=�=���+�+�D��
�D�I��k�4�(�F��y�� � �
������	�	rJc��d�}i}|�|��D]5\}}|�|jg���||f���6|���D]}|����|S)a�
        :return:
            Dict(path : list( tuple( stage, Blob, ...))), being
            a dictionary associating a path in the index with a list containing
            sorted stage/blob pairs


        :note:
            Blobs that have been removed in one side simply do not exist in the
            given stage. I.e. a file removed on the 'other' branch whose entries
            are at stage 3 will not have a stage 3 entry.
        c��|ddkS)Nrr�r�s rNrpz*IndexFile.unmerged_blobs.<locals>.<lambda>�s��Q�q�T�Q�Y�rJ)r��
setdefaultrcr�rs�sort)rM�is_unmerged_blob�path_maprmr��lines      rN�unmerged_blobszIndexFile.unmerged_blobs�s���/�.��AC���?�?�+;�<�<�	E�	E�K�E�4�����	�2�.�.�5�5�u�d�m�D�D�D�D��O�O�%�%�	�	�D��I�I�K�K�K�K��rJr�c��t|�Srk)r)r�r�s  rNrzIndexFile.entry_keys
���%� � rJr�c��|D]y}|jdf}||jvr$tdt|j��z���dD]"}	|j|j|f=�#t$rY�wxYwtj|��|j|<�z|S)aFResolve the blobs given in blob iterator. This will effectively remove the
        index entries of the respective path at all non-null stages and add the given
        blob as new stage null blob.

        For each path there may only be one blob, otherwise a ValueError will be raised
        claiming the path is already at stage 0.

        :raise ValueError: if one of the blobs already existed at stage 0
        :return: self

        :note:
            You will have to write the index manually once you are done, i.e.
            index.resolve_blobs(blobs).write()
        rz!Path %r already exists at stage 0)rrFr�)rcrCr�r��KeyErrorr%�	from_blob)rMr�r��stage_null_keyrms     rN�
resolve_blobszIndexFile.resolve_blobss����	F�	F�D�"�i��^�N����-�-� �!D�s�4�9�~�~�!U�V�V�V�#�
�
�����d�i��%7�8�8�������D�����
,6�+?��+E�+E�D�L��(�(��s�A�
A�Ac�.�|���|S)z�Reread the contents of our index file, discarding all cached information
        we might have.

        :note: This is a possibly dangerious operations as it will discard your changes
            to index.entries
        :return: self)rfras rN�updatezIndexFile.update's��	
�"�"�$�$�$��rJc
�H�t��}|���}t||tdt	|������\}}|�|���|jj��t|j|d���}||_
|S)a�Writes this index to a corresponding Tree object into the repository's
        object database and return it.

        :return: Tree object representing this index
        :note: The tree will be written even if one or more objects the tree refers to
            does not yet exist in the object database. This could happen if you added
            Entries to the index directly.
        :raise ValueError: if there are no entries in the cache
        :raise UnmergedEntriesError:rr��rc)rrtr �slicer��stream_copy�sha_iterrAr�r�_cache)rM�mdbrC�binsha�
tree_items�	root_trees      rN�
write_treezIndexFile.write_tree2s����j�j���&�&�(�(��2�7�C��q�#�g�,�,�AW�AW�X�X���
�	���������	�
�6�6�6����F��4�4�4�	�%�	���rJr�zgit_diff.Diffablezgit_diff.Diffable.Indexc�z�	|�|�|����n#t$rYnwxYw|Srk)�popr_�
IndexError)rMr�s  rN�_process_diff_argszIndexFile._process_diff_argsKsO��	��H�H�T�Z�Z��%�%�&�&�&�&���	�	�	��D�	�����s�(+�
8�8rcc�h�tj|��s|S|jjrt	d���t|���t|jj����std|�d|jj�����tj
�||jj��S)z�
        :return: Version of path relative to our git directory or raise ValueError
            if it is not within our git directoryzrequire non-bare repositoryzAbsolute path z is not in git repository at )r�r�rA�barerr��
startswithr�r�rTrc�relpath)rMrcs  rN�_to_relative_pathzIndexFile._to_relative_pathVs����y����	��K��9�>�	K�+�,I�J�J�J��4�y�y�#�#�C��	�(B�$C�$C�D�D�	u��*�RV�RV�RV�X\�Xa�Xr�Xr�s�t�t�t��w���t�T�Y�%?�@�@�@rJ�itemsr
c��g}g}t|ttjf��r|g}|D]�}t|ttjf��r)|�|�|�����Lt|ttf��r(|�tj	|������t|t��r|�|����td|z���||fS)z?Split the items into two lists of path strings and BaseEntries.zInvalid Type: %r)�
isinstancer�rTr:r�r
rr
r$r��	TypeError)rMrr�rCr�s     rN�_preprocess_add_itemszIndexFile._preprocess_add_itemsbs��������e�c�2�;�/�0�0�	��G�E��	;�	;�D��$��b�k� 2�3�3�
;����T�3�3�D�9�9�:�:�:�:��D�4��"3�4�4�
;����~�7��=�=�>�>�>�>��D�.�1�1�
;����t�$�$�$�$�� 2�T� 9�:�:�:��g�~�rJc����tj���}t|j��r�fd�}n�fd�}|��5}|�d���|jj�ttj	|j
|����}|�d���ddd��n#1swxYwYtt|j��|j
dt���f��S)z�Store file at filepath in the database and return the base index entry
        Needs the git_working_dir decorator active ! This must be assured in the calling codec�n��tttj���t�����S)N)�encoding)rrrT�readlinkr�r�s�rNrpz'IndexFile._store_path.<locals>.<lambda>~s(���'�+�b�k�Zb�Nc�Nc�nt�Bu�Bu�Bu�:v�:v�rJc�$��t�d��S�N�rb)rUrs�rNrpz'IndexFile._store_path.<locals>.<lambda>�s���$�x��"6�"6�rJFTNr)rTr�rr�rAr��storerr�type�st_sizer$r!r�r)rMr�r�r��open_streamrR�istreams `     rN�_store_pathzIndexFile._store_pathxs*����X�h�
�
���2�:���	7�2v�2v�2v�2v�K�K�6�6�6�6�K�
�[�]�]�	0�f��I�h��x�0�0�0��i�m�)�)�'�$�)�R�Z��*P�*P�Q�Q�G��I�h��h�/�/�/�	0�	0�	0�	0�	0�	0�	0�	0�	0�	0�	0����	0�	0�	0�	0��'��
�3�3����$�X�.�.�	
�
�
�	
s�AB#�#B'�*B'�
path_rewriterrCc
��g}|r�|D]�}tj|��r4|}|tt|jj����dzd�}n-|}|jjrtj|jj|��}t|jtjttj|��j��t|����}	|�tj|	������|dd�=t|��dksJ�|�|��D]+}
|�|�|
|�����,|S)Nrr)r�r�r�r�rAr�r�r�NULL_BIN_SHAr!rT�statr�rr�r$r�r�r)rMr�rr�rC�
entries_addedrc�abspath�gitrelative_pathr�r�s           rN�_entries_for_pathszIndexFile._entries_for_paths�sf��/1�
��	��
?�
?���9�T�?�?�Y�"�G�'+�C��D�I�4N�0O�0O�,P�,P�ST�,T�,V�,V�'W�$�$�'+�$��y�1�Y�"%�(�4�9�+E�GW�"X�"X����I��%�+�B�G�G�,<�,<�,D�E�E�(�)9�:�:�	������~�7��=�=�>�>�>�>��a�a�a���=�!�!�Q�&�&�&�&��/�/��6�6�	H�	H�H�� � ��!1�!1�(�I�!F�!F�G�G�G�G��rJc��dSrkr��r�s rNrpzIndexFile.<lambda>����D�rJ�forcerz�write_extension_datac	�����|�|��\}�g}|r+|�|�||�������r�d��D��}	|	rtd���d�t	���D����r t
d
���fd���}
|
|��|rCt	���D]3\}}t
|j|j|j	||��f���|<�4t	���D]/\}}
|�v}|s$�|
j
d	|
���|
j
d
|
���0|����|D]%}
tj|
��|j
|
j
df<�&|r|�|���|S)a5Add files from the working tree, specific blobs or BaseIndexEntries
        to the index.

        :param items:
            Multiple types of items are supported, types can be mixed within one call.
            Different types imply a different handling. File paths may generally be
            relative or absolute.

            - path string
                strings denote a relative or absolute path into the repository pointing to
                an existing file, i.e. CHANGES, lib/myfile.ext, '/home/gitrepo/lib/myfile.ext'.

                Absolute paths must start with working tree directory of this index's repository
                to be considered valid. For example, if it was initialized with a non-normalized path, like
                `/root/repo/../repo`, absolute paths to be added must start with `/root/repo/../repo`.

                Paths provided like this must exist. When added, they will be written
                into the object database.

                PathStrings may contain globs, such as 'lib/__init__*' or can be directories
                like 'lib', the latter ones will add all the files within the directory and
                subdirectories.

                This equals a straight git-add.

                They are added at stage 0

            - Blob or Submodule object
                Blobs are added as they are assuming a valid mode is set.
                The file they refer to may or may not exist in the file system, but
                must be a path relative to our repository.

                If their sha is null ( 40*0 ), their path must exist in the file system
                relative to the git repository as an object will be created from
                the data at the path.
                The handling now very much equals the way string paths are processed, except that
                the mode you have set will be kept. This allows you to create symlinks
                by settings the mode respectively and writing the target of the symlink
                directly into the file. This equals a default Linux-Symlink which
                is not dereferenced automatically, except that it can be created on
                filesystems not supporting it as well.

                Please note that globs or directories are not allowed in Blob objects.

                They are added at stage 0

            - BaseIndexEntry or type
                Handling equals the one of Blob objects, but the stage may be
                explicitly set. Please note that Index Entries require binary sha's.

        :param force:
            **CURRENTLY INEFFECTIVE**
            If True, otherwise ignored or excluded files will be
            added anyway.
            As opposed to the git-add command, we enable this flag by default
            as the API user usually wants the item to be added even though
            they might be excluded.

        :param fprogress:
            Function with signature f(path, done=False, item=item) called for each
            path to be added, one time once it is about to be added where done==False
            and once after it was added where done=True.
            item is set to the actual item we handle, either a Path or a BaseIndexEntry
            Please note that the processed path is not guaranteed to be present
            in the index already as the index is currently being processed.

        :param path_rewriter:
            Function with signature (string) func(BaseIndexEntry) function returning a path
            for each passed entry which is the path to be actually recorded for the
            object created from entry.path. This allows you to write an index which
            is not identical to the layout of the actual files on your hard-disk.
            If not None and ``items`` contain plain paths, these paths will be
            converted to Entries beforehand and passed to the path_rewriter.
            Please note that entry.path is relative to the git repository.

        :param write:
            If True, the index will be written once it was altered. Otherwise
            the changes only exist in memory and are not available to git commands.

        :param write_extension_data:
            If True, extension data will be written back to the index. This can lead to issues in case
            it is containing the 'TREE' extension, which will cause the `git commit` command to write an
            old tree, instead of a new one representing the now changed index.
            This doesn't matter if you use `IndexFile.commit()`, which ignores the `TREE` extension altogether.
            You should set it to True if you intend to use `IndexFile.commit()` exclusively while maintaining
            support for third-party extensions. Besides that, you can usually safely ignore the built-in
            extensions when using GitPython on repositories that are not handled manually at all.
            All current built-in extensions are listed here:
            http://opensource.apple.com/source/Git/Git-26/src/git-htmldocs/technical/index-format.txt

        :return:
            List(BaseIndexEntries) representing the entries just actually added.

        :raise OSError:
            if a supplied Path did not exist. Please note that BaseIndexEntry
            Objects that do not have a null sha will be added even if their paths
            do not exist.
        c�(�g|]}|jdk�
|��S)r)�moder�s  rNr�z!IndexFile.add.<locals>.<listcomp>/s�� C� C� C�q�q�v��{�{��{�{�{rJzXAt least one Entry has a null-mode - please use index.remove to remove files for clarityc�B�g|]\}}|jtjk�|��Sr�)r�rr )r��iros   rNr�z!IndexFile.add.<locals>.<listcomp>8s,��#h�#h�#h�$�!�Q���TZ�Tg�Hg�Hg�A�Hg�Hg�HgrJrMr?rHNc����D]O}�|}|�|j���}t|j|j|j|jf���|<�PdSrk)rrcr$r-r�rm)rM�ei�
null_entry�	new_entryrCr��null_entries_indicess    ���rN�handle_null_entriesz*IndexFile.add.<locals>.handle_null_entries;sn���2����%,�R�[�
�$(�$4�$4�Z�_�i�$P�$P�	�'5� *�� )� 0� *� 0� *��	�'�'������rJFTr)ru)rMr?rHN)rr�r%r��	enumerater*r$r-r�rmrcr%r�rCrz)rMrr)r�rrzr*r�r"�null_mode_entriesr5r/ror��
progress_sentrCr4s   `           @@rN�addz
IndexFile.add�s#�����\�3�3�E�:�:���w�.0�
��	d�� � ��!8�!8��
�y�Za�!b�!b�c�c�c��3	*� C� C�G� C� C� C�� �
� �n����$i�#h�)�G�2D�2D�#h�#h�#h� �#�
*� �
�
�
�
�
�
�
�!��
�"$�#�D�)�)�)��
_�%�g�.�.�_�_�D�A�q�!/�����1�7�M�M�Z[�L\�L\�0]�!^�!^�G�A�J�J�
&�g�.�.�
7�
7���5� !�%9� 9�
�$�7��I�e�j�%��7�7�7��I�e�j�$��6�6�6��
� � ��)�)�)�
#�	H�	H�E�,6�,@��,G�,G�D�L�%�*�a��)�)��	G��J�J�1E�-E�J�F�F�F��rJc��g}t|ttjf��r|g}|D]�}t|tt
tff��r.|�|�|j	�����St|t��r)|�|�|������td|z���|S)z|Returns a list of repo-relative paths from the given items which
        may be absolute or relative paths, entries or blobszInvalid item type: %r)r
r�rTr:r$rr
r�r
rcr)rMrr�r�s    rN�_items_to_rela_pathszIndexFile._items_to_rela_pathsos������e�c�2�;�/�0�0�	��G�E��	@�	@�D��$��$�	�1B� C�D�D�
@����T�3�3�D�I�>�>�?�?�?�?��D�#�&�&�
@����T�3�3�D�9�9�:�:�:�:�� 7�$� >�?�?�?��rJ�working_treec��g}|s|�d��|�d��|�|��}|jjj||fi|�����}d�|D��S)a�Remove the given items from the index and optionally from
        the working tree as well.

        :param items:
            Multiple types of items are supported which may be be freely mixed.

            - path string
                Remove the given path at all stages. If it is a directory, you must
                specify the r=True keyword argument to remove all file entries
                below it. If absolute paths are given, they will be converted
                to a path relative to the git repository directory containing
                the working tree

                The path string may include globs, such as \*.c.

            - Blob Object
                Only the path portion is used in this case.

            - BaseIndexEntry or compatible type
                The only relevant information here Yis the path. The stage is ignored.

        :param working_tree:
            If True, the entry will also be removed from the working tree, physically
            removing the respective file. This may fail if there are uncommitted changes
            in it.

        :param kwargs:
            Additional keyword arguments to be passed to git-rm, such
            as 'r' to allow recursive removal of

        :return:
            List(path_string, ...) list of repository relative paths that have
            been removed effectively.
            This is interesting to know in case you have provided a directory or
            globs. Paths are relative to the repository.z--cachedz--c�"�g|]}|dd���
S)����r�)r��ps  rNr�z$IndexFile.remove.<locals>.<listcomp>�s ��/�/�/�A��!�B�$��/�/�/rJ)r�r;rAr��rm�
splitlines)rMrr<r�r�r��
removed_pathss       rN�removezIndexFile.remove�s���V���	$��K�K�
�#�#�#����D�����)�)�%�0�0��(��	�
�(��u�?�?��?�?�J�J�L�L�
�0�/��/�/�/�/rJ�skip_errorsc��g}|r|�d��|�|��}t|��dkrtd���|�d|�dd����}d|d<g}|jjj||fi|�����}ttt|��dz��t|����D]n}	||	�d��}
t|
��dksJd	||	z���|�|
d
dd�|
df���o|r|S|�d��|jjj||fi|��|S)
aMRename/move the items, whereas the last item is considered the destination of
        the move operation. If the destination is a file, the first item ( of two )
        must be a file as well. If the destination is a directory, it may be preceded
        by one or more directories or files.

        The working tree will be affected in non-bare repositories.

        :parma items:
            Multiple types of items are supported, please see the 'remove' method
            for reference.
        :param skip_errors:
            If True, errors such as ones resulting from missing source files will
            be skipped.
        :param kwargs:
            Additional arguments you would like to pass to git-mv, such as dry_run
            or force.

        :return: List(tuple(source_path_string, destination_path_string), ...)
            A list of pairs, containing the source file moved as well as its
            actual destination. Relative to the repository root.

        :raise ValueError: If only one item was given
        :raise GitCommandError: If git could not handle your requestz-krFzLPlease provide at least one source and one destination of the move operation�dry_run�nNTz to zToo many tokens in %sr�	r)r�r;r�r�rrAr��mvrC�range�int�split)rMrrFr�r�r��was_dry_run�out�mvlines�ln�tokenss           rN�movezIndexFile.move�s���>���	��K�K������)�)�%�0�0���u�:�:��>�>��k�l�l�l��j�j��F�J�J�s�D�,A�,A�B�B�� ��y����"�$�)�-�"�4��9�9�&�9�9�D�D�F�F����C��L�L�1�,�-�-�s�7�|�|�<�<�	3�	3�B��R�[�&�&�v�.�.�F��v�;�;�!�#�#�#�%<�w�r�{�%J�#�#�#�
�J�J��q�	�!�"�"�
�v�a�y�1�2�2�2�2��	��J�	�
�
�9������	�
���u�/�/��/�/�/��
rJ�message�parent_commits�head�author)Nr>�	committer�author_date�commit_date�
skip_hooksc	�z�|sptd|��|�|��td||�����|���}|���|���}	t
j|j|	|||||||��	�	}
|std|��|
S)a�Commit the current default index file, creating a commit object.
        For more information on the arguments, see Commit.create_from_tree().

        :note: If you have manually altered the .entries member of this instance,
               don't forget to write() your changes to disk beforehand.
               Passing skip_hooks=True is the equivalent of using `-n`
               or `--no-verify` on the command line.
        :return: Commit object representing the new commitz
pre-commitz
commit-msg)rXrYrZr[zpost-commit)	r#�_write_commit_editmsg�_commit_editmsg_filepath�_read_commit_editmsg�_remove_commit_editmsgrr�create_from_treerA)rMrUrVrWrXrYrZr[r\�treer�s           rNr|zIndexFile.commits���&�	*��L�$�/�/�/��&�&�w�/�/�/��L�$��0M�0M�0O�0O�P�P�P��/�/�1�1�G��'�'�)�)�)���� � ���&��I�������#�#�

�

�

���	1��M�4�0�0�0��rJc���t|���d��5}|�|�t����ddd��dS#1swxYwYdS)N�wb)rUr_rzr�r)rMrU�commit_editmsg_files   rNr^zIndexFile._write_commit_editmsg+s���
�$�/�/�1�1�4�
8�
8�	>�<O��%�%�g�n�n�V�&<�&<�=�=�=�	>�	>�	>�	>�	>�	>�	>�	>�	>�	>�	>�	>����	>�	>�	>�	>�	>�	>s�.A�A"�%A"c�R�tj|�����dSrk)rTrEr_ras rNraz IndexFile._remove_commit_editmsg/s$��
�	�$�/�/�1�1�2�2�2�2�2rJc���t|���d��5}|����t��cddd��S#1swxYwYdSr)rUr_�read�decoder)rMrfs  rNr`zIndexFile._read_commit_editmsg2s���
�$�/�/�1�1�4�
8�
8�	=�<O�&�+�+�-�-�4�4�V�<�<�	=�	=�	=�	=�	=�	=�	=�	=�	=�	=�	=�	=����	=�	=�	=�	=�	=�	=s�,A�A �#A c�@�tj|jjd��S)N�COMMIT_EDITMSG)r�r�rA�
common_dirras rNr_z"IndexFile._commit_editmsg_filepath6s���x��	�,�.>�?�?�?rJ�Popen[bytes]�
ignore_stdoutc��|j}|r(|���|���d}|s |jr|j���}|jr-|j���|���|S)NrJ)r�r�rXr�ri�wait)r�r�ro�stdin_IOr�s     rN�_flush_stdin_and_waitzIndexFile._flush_stdin_and_wait9s����:���	��N�N�����N�N�������	(���	(��[�%�%�'�'�F��;�	��K�������I�I�K�K�K��
rJc��dSrkr�r's rNrpzIndexFile.<lambda>Mr(rJc�P������dg�|r��d��g�g�g�dddttddf���fd�}|����d	��d
|d<|ddd��|jjj�i|�������|dd
d��d�|j���D��}|�|��|St|t��r|g}|j��d��d
|d<tj|d<|jjj�fi|�����fd�}g}|D�]}	t|�|	����}
d}	|j|
dfn�#t$r�t|
��}|�d��s|dz
}|j���D]b}
t|
j���|��r9|
j}|��||||d���|�|��d
}�cYnwxYw|s0|��|
|	||d���|�|
����!	|��d
���n #t*$rt-d�g����wxYw|�|��|S)aCheckout the given paths or all files from the version known to the index into
        the working tree.

        :note: Be sure you have written pending changes using the ``write`` method
            in case you have altered the enties dictionary directly

        :param paths:
            If None, all paths in the index will be checked out. Otherwise an iterable
            of relative or absolute paths or a single path pointing to files or directories
            in the index is expected.

        :param force:
            If True, existing files will be overwritten even if they contain local modifications.
            If False, these will trigger a CheckoutError.

        :param fprogress:
            see :func:`IndexFile.add` for signature and explanation.
            The provided progress information will contain None as path and item if no
            explicit paths are given. Otherwise progress information will be send
            prior and after a file has been checked out

        :param kwargs:
            Additional arguments to be passed to git-checkout-index

        :return:
            iterable yielding paths to files which have been checked out and are
            guaranteed to match the version stored in the index

        :raise exc.CheckoutError:
            If at least one file failed to be checked out. This is a summary,
            hence it will checkout as many files as it can anyway.
            If one of files or directories do not exist in the index
            ( as opposed to the  original git command who ignores them ).
            Raise GitCommandError if error lines could not be parsed - this truly is
            an exceptional state

        .. note:: The checkout is limited to checking out the files in the
            index. Files which are not in the index anymore and exist in
            the working tree will not be deleted. This behaviour is fundamentally
            different to *head.checkout*, i.e. if you want git-checkout like behaviour,
            use head.checkout instead of index.checkout.
        z--indexz--forcer�rn�iter_checked_out_filesrHNc	����|j}|sdS|���}|�t��}d}|���D�]�}|�d���sG|�d���s1d}d}d}	|�|��rA��|dt|������
�|��n�|�|��rS��|t|��|�	d������
�|��nk|�|	��rA��|dt|	������
�|	��n��|����`|D]Y}
|�|
��rB��|dt|
������
�|
��n�Z����rtd	d
|����r>tt|��t���z
��}td�|�
���dS)N)z already existsz is not in the cachez does not exist at stagez is unmergedzgit checkout-index: zgit-checkout-index: z is a directoryzunable to unlink old 'z already exists, no checkout�'��zgit-checkout-index�zMSome files could not be checked out from the index due to local modifications)�stderrrirjrrCr�endswithr�r��rfindr�list�setr	)r�rv�	stderr_IO�stderr_bytesr|�endingsr��is_a_dir�unlink_issue�already_exists_issuero�valid_files�failed_files�failed_reasons�
unknown_liness            ���rN�
handle_stderrz)IndexFile.checkout.<locals>.handle_stderr�s������I��
0��t�(�~�~�/�/��!�(�(��0�0�F��G��)�)�+�+�
�
�����'=�>�>��t���Wm�Gn�Gn��0�H�#;�L�+I�(��}�}�X�.�.�
3�$�+�+�D�1A�C��M�M�>�1A�,B�C�C�C�&�-�-�h�7�7�7�7�����6�6�3�$�+�+�D��\�1B�1B�T�Z�Z�PS�_�_�1T�,U�V�V�V�&�-�-�l�;�;�;�;����';�<�<�3�$�+�+�D�1M�C�8L�4M�4M�3M�1M�,N�O�O�O�&�-�-�.B�C�C�C�C�%�,�,�T�2�2�2��!���A��}�}�Q�'�'��$�+�+�D��s�1�v�v�g��,>�?�?�?�&�-�-�a�0�0�0������
L�%�&=�s�F�K�K�K��
�"�3�'=�#>�#>��\�AR�AR�#R�S�S��#�c� ��"�	���
�
rJz--allr�
as_processFTc3�$K�|]}|jV��dSrkr�r�s  rNr�z%IndexFile.checkout.<locals>.<genexpr>�s$����?�?�A���?�?�?�?�?�?rJz--stdinrc�t��tdt���zd�j�����S)Nrzr{)r�tupler|ri)r�r�s��rNrpz$IndexFile.checkout.<locals>.<lambda>�s0����/F��t���/T�VY�[_�[f�[k�[k�[m�[m�n�n�rJr�/)r�)rozWSome files could not be checked out from the index, probably because they didn't exist.)r�r0r:rAr��checkout_indexrqrCrsr
r��
subprocess�PIPErr
r�r}rcrr�rsrr	)rMr�r)r�r�r��	rval_iter�make_exc�checked_out_filesrc�co_path�path_is_directory�folderr�rAr�r�r�r�r�s               @@@@@rN�checkoutzIndexFile.checkoutHsu�������d�{���	#��K�K�	�"�"�"������
�3	��3	��QY�HZ�3	�_c�3	�3	�3	�3	�3	�3	�3	�3	�n�=��K�K�� � � �#$�F�<� ��I�d�E�4�(�(�(�/�4�9�=�/��@��@�@�D��I�I�K�K�K��I�d�D�$�'�'�'�?�?���)<�)<�)>�)>�?�?�?�I��M�$�	�*�*�*����%��%�%�
 ����

�L�L��K�K�	�"�"�"�#'�F�<� � *��F�9��/�4�9�=�/��?�?��?�?�D�n�n�n�n�n�H�02���
6�
6��.�t�/E�/E�d�/K�/K�L�L��$)�!�5��L�'�1��.�.�.���	5�	5�	5� ��\�\�F�!�?�?�3�/�/�&��#�
��!%��!4�!4�!6�!6�5�5���u�z�?�?�5�5�f�=�=�5� %�
�A� �5�5�d�A�q�(�I�hm�5�n�n�n�-�4�4�Q�7�7�7�04�-��5�5�		5����)�6��-�-�d�G�T�8�Y�in�-�o�o�o�%�,�,�W�5�5�5��	
��*�*�4�t�*�D�D�D�D��"�
�
�
�#�m� ��"�	���
����
�M�$� 1�2�2�2�$�$s�(E8�8B/H*�)H*�"I:�:J�HEADr|r=c�"�t|���|j|��}|s
|j|_nl|j}|D]b}|�|��}	t|d��}	||	|j|	<�9#t$r	|j|	=n#t$rYnwxYwY�_wxYw|���|r|�|d���|r<|jj	�
|j�|��d|z���|S)a�Reset the index to reflect the tree at the given commit. This will not
        adjust our HEAD reference as opposed to HEAD.reset by default.

        :param commit:
            Revision, Reference or Commit specifying the commit we should represent.
            If you want to specify a tree only, use IndexFile.from_tree and overwrite
            the default index.

        :param working_tree:
            If True, the files in the working tree will reflect the changed index.
            If False, the working tree will not be touched
            Please note that changes to the working copy will be discarded without
            warning !

        :param head:
            If True, the head will be set to the given commit. This is False by default,
            but if True, this method behaves like HEAD.reset.

        :param paths: if given as an iterable of absolute or repository-relative paths,
            only these will be reset to their state at the given commit'ish.
            The paths need to exist at the commit, otherwise an exception will be
            raised.

        :param kwargs:
            Additional keyword arguments passed to git-reset

        .. note:: IndexFile.reset, as opposed to HEAD.reset, will not delete anyfiles
            in order to maintain a consistent working tree. Instead, it will just
            checkout the files according to their state in the index.
            If you want git-reset like behaviour, use *HEAD.reset* instead.

        :return: selfrT)r�r)z%s: Updating HEAD)�logmsg)rr�rArCr
rr�rzr�rW�
set_commitr|)
rMr|r<r�rWr��new_inst�niercrqs
          rN�resetzIndexFile.reset�sI��V��:�:�'�'��	�6�:�:���	�#�+�D�L�L��"�C��

�

���-�-�d�3�3���#�D�!�,�,�C�(+�C��D�L��%�%������� �L��-�-��#������������	����	
�
�
�����	3��M�M��T�M�2�2�2��	e��I�N�%�%�d�i�&6�&6�v�&>�&>�GZ�]c�Gc�%�d�d�d��s6� A:�:
B!�B�
B!�
B�B!�B�B!� B!�otherrr�create_patchc���|j|���kr$td|���z���||jurtj��St|t��r|j	�
|��}t|t��r1|�dd��}||d<|j|j||fi|��S|�td|z���tt|��j|||fi|��S)aCDiff this index against the working copy or a Tree or Commit object

        For a documentation of the parameters and return values, see,
        Diffable.diff

        :note:
            Will only work with indices that represent the default git index as
            they have not been initialized with a stream.
        zECannot call %r on indices that do not represent the default git index�RFNz<other must be None, Diffable.Index, a Tree or Commit, was %r)rErL�AssertionError�diff�Index�git_diff�	DiffIndexr
r�rA�	rev_parser�getr�rZr?)rMr�r�r�r��cur_valr]s      �rNr�zIndexFile.diffIs���$�?�d�.�.�0�0�0�0� �!h�ko�kt�kt�kv�kv�!v�w�w�w��D�J����%�'�'�'�
�e�S�!�!�	/��I�'�'��.�.�E��e�V�$�$�	I��j�j��e�,�,�G�%�+�F�3�K��5�:�d�j�%��H�H��H�H�H����[�^c�c�d�d�d�+�u�Y��%�%�*�5�%��P�P��P�P�PrJrk)rHN)F)NF)T)rHr?)NTNNNNF)r�FNF)R�__name__�
__module__�__qualname__�__doc__�	__slots__rKr"r8r:rOr�r[rL�propertyrcrfr/rYr2r%rt�boolrxrzr(r)�Treeishr��classmethodrr�r+r�rr4r1r�r-r
r�r6r&rr�r.r�r$rr�r�rr7rr
rrr*r%r9r
r;rErTr9�datetimerr|r^rar`r_�bytesrsr0r�r�r��Diffabler�r�r��
__classcell__)r]s@rNr?r?as�
�������4�4�*P�I��H��K�	D�	D�V�	D��h��n�0E�	D�QU�	D�	D�	D�	D�5��5��5�5�5�5�5�5�&O�X�O�O�O�O���h�����X�������2��+�����
N��j�!1�N�N�N�N�����D��[�����,0�&+�,(�,(���x��(�,(� $�,(�
�	,(�,(�,(�,(�\��!�!�g�!�U�4��=�-A�!�[�!�!�!��]���!�F��v��%��T�	�*:��{�����[��8�>�V�>�w�>�#�>�+�>�>�>��[�>�D�4/��4/�X�h�5G�4/�H�U]�L^�4/�4/�4/��[�4/�~"&�&�&��&��&��	&�
�3��=�)�&��X�t�X�6��<�=�
&��&�
�t�S�y�	�&�&�&�&�RES�N���!�5��D��#9�":�D�"@�A��	�%�	�4��(�	)�����$��X�t�E�)�T�/�4J�/K�%K� L�����.�!�u�^�X�y�%H�I�!�e�T\�^g�Tg�Nh�!�!�!��[�!�!����!�;�!�!�!�!�F	�	�	�	��D�����2	��5��1�4�8Q�3R�R�S�T�	�
�e�C�,�d�3L�.M�M�N�	O�	�	�	�	�
A�h�
A�8�
A�
A�
A�
A���e�H�d�N�K�$O�P�Q��	�t�H�~�t�N�3�3�	4�����,
�H�
��
�n�
�
�
�
�,��%��C�y�%� �%��	%�
�n�%�%�
�n�	�
%�%�%��_��[�%�T�0�0�>B��%*�v�v���h��n�k�I�J�K�v��v��	v�
�X�c�8�m�4�d�:�;�v��
v�#�v�
�n�	�v�v�v�v�p��X�x��h���i�.W�(X�Y�Y�Z��
�h������*��#�40�40���h��n�k�I�J�K�40��40��	40�

�c��40�40�40��]���40�l��"�A�A���h��n�k�I�J�K�A��A��	A�

�e�C��H�o�	�A�A�A��]���A�L37��'+�*.�;?�;?� �(�(��(��j�$�.�/�(��	(�
�m�$�(���'�
(��8�,�c�4�7�8�(��8�,�c�4�7�8�(��(�
�(�(�(�(�T>�S�>�T�>�>�>�>�3�3�3�3�=�c�=�=�=�=�@�#�@�@�@�@�
�
��
��
�Y^�
�
�
�
��26��0�0�	q%�q%��T�8�H�-�-�.�q%��q%��	q%�
�q%�
�t�X�h�'��(�);�;�	<�
q%�q%�q%��]�q%�h�39�"�15��H�H��f�k�3�.�/�H��H��T�8�H�-�-�.�	H�
�H��
H�
�H�H�H��]�H�ZV^�Uf�Ul�MQ�"�	+Q�+Q��T�3�4�f�h��T�Q�R�+Q��X�t�H�~�u�X�s�]�/C�T�I�J�+Q��	+Q�
�+Q�
�	�
+Q�+Q�+Q�+Q�+Q�+Q�+Q�+Q�+Q�+QrJr?)]�
contextlibrr�r��iorrTr!rr�r��
git.compatrr�git.excrr	r
r�git.objectsrr
rrr�git.objects.utilr�git.utilrrrrrrr�
gitdb.baser�gitdb.dbr�git.diffr�r��os.pathrcr��funrrrrr r!r"r#�typr$r%r&�utilr'r(r)r*�typingr+r,r-r.r/r0r1r2r3r4r5r6r7r8�	git.typesr9r:r;�git.repor<�git.refs.referencer=r>r�r�r��__all__r�r?r�rJrN�<module>r�s���!� � � � � ���������������	�	�	�	�����������������������X�W�W�W�W�W�W�W�W�W�W�W���������������*�)�)�)�)�)�������������������������������������������	�	�	�	�	�	�	�	�	�	�	�	�	�	�	�	�	�	�	�	�����������
V�U�U�U�U�U�U�U�U�U�U�U���������������������������������"+�*�*�*�*�*�*�*��� � � � � � �������,�,�,�,�,�,���������f�c�5�(�
)��
6��SQ�SQ�SQ�SQ�SQ�	�8�,�l�SQ�SQ�SQ�SQ�SQrJ

Zerion Mini Shell 1.0