Hacked By AnonymousFox

Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/git/refs/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/git/refs/__pycache__/reference.cpython-311.pyc

�

�܋f&���ddlmZmZddlmZmZddlmZmZm	Z	m
Z
mZmZddl
mZmZmZerddlmZdgZded	efd
ed	effd�ZGd�deee��Zd
S)�)�	LazyMixin�IterableObj�)�SymbolicReference�T_References)�Any�Callable�Iterator�Type�Union�
TYPE_CHECKING)�
Commit_ish�PathLike�_T)�Repo�	Reference�func.�returnc�V��dtdtdtf�fd�}�j|_|S)zOA decorator raising a TypeError if we are not a valid remote, based on the path�self�argsrc�l��|���std|jz����|g|�R�S)Nz1ref path does not point to a remote reference: %s)�	is_remote�
ValueError�path)rrrs  ��c/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/git/refs/reference.py�wrapperz(require_remote_ref_path.<locals>.wrappersF����~�~���	^��P�SW�S\�\�]�]�]��t�D� �4� � � � �)rrr�__name__)rrs` r�require_remote_ref_pathr sG���!�l�!�3�!�2�!�!�!�!�!�!��}�G���Nrc�`��eZdZdZdZdZdZdZdddded	e	d
df�fd�
Z
d
efd
�Z	dde
edefde
edfd
df�fd�
Zed
efd���Ze	ddeeddde
edfdeded
eefd���Zeed
efd�����Zeed
efd�����Z�xZS)rzRepresents a named reference to any object. Subclasses may apply restrictions though,
    i.e. Heads can only point to commits.�FT�refs�reporr�
check_pathrNc����|rIt|���|jdz��std|jj�d|�����|t
t|���||��dS)abInitialize this instance

        :param repo: Our parent repository
        :param path:
            Path relative to the .git/ directory pointing to the ref in question, i.e.
            refs/heads/master
        :param check_path: if False, you can provide any path. Otherwise the path must start with the
            default path prefix of this type.�/zCannot instantiate z from path N)	�str�
startswith�_common_path_defaultr�	__class__r�superr�__init__)rr$rr%r+s    �rr-zReference.__init__2s�����	a�c�$�i�i�2�2�4�3L�s�3R�S�S�	a��_�4�>�3J�_�_�Y]�_�_�`�`�`���
�i����'�'��d�3�3�3�3�3rc��|jS�N)�name)rs r�__str__zReference.__str__@s
���y�r�objectr�logmsgc���d}|�*|jj}|js|j|kr|jj}t
t|���||��|� |jj�	||��|S)z[Special version which checks if the head-log needs an update as well

        :return: selfN)
r$�head�is_detached�ref�commit�binshar,r�
set_object�
log_append)rr2r3�	oldbinshar5r+s     �rr:zReference.set_objectFs�����	����9�>�D��#�
/���D�(8�(8� �K�.�	�	�i����)�)�&�&�9�9�9�� �
�I�N�%�%�i��8�8�8��rc��|j�d��}t|��dkr|jSd�|dd���S)zK:return: (shortest) Name of this reference - it may contain path componentsr'��N)r�split�len�join�r�tokenss  rr0zReference.namelsH��
�����%�%���v�;�;��?�?��9���x�x��q�r�r�
�#�#�#r�cls�common_pathr�kwargsc�.�|�||��S)zdEquivalent to SymbolicReference.iter_items, but will return non-detached
        references as well.)�_iter_items)rEr$rFrrGs     r�
iter_itemszReference.iter_itemsvs�����t�[�1�1�1rc�F�|j�d��}|dS)z�
        :return:
            Name of the remote we are a reference of, such as 'origin' for a reference
            named 'origin/master'r'r?)rr@rCs  r�remote_namezReference.remote_name�s!�������%�%���a�y�rc�p�|j�d��}d�|dd���S)z�:return: Name of the remote head itself, i.e. master.
        :note: The returned name is usually not qualified enough to uniquely identify
            a branchr'r>N)rr@rBrCs  r�remote_headzReference.remote_head�s1�������%�%���x�x��q�r�r�
�#�#�#r)Tr/)r�
__module__�__qualname__�__doc__�	__slots__�_points_to_commits_only�_resolve_ref_on_creater*r�boolr-r(r1rrr:�propertyr0�classmethodrrrr
rJr rLrN�
__classcell__)r+s@rrr(s��������-�-��I�#��!��!��4�4�V�4�8�4��4�QU�4�4�4�4�4�4�������$(�"�"��j�"5�s�:�;�"��c�4�i� �"�
�	"�"�"�"�"�"�L�$�c�$�$�$��X�$��.2�	2�	2�
�,�
�	2��	2��8�T�>�*�	2��		2�
�	2�
�,�	�
	2�	2�	2��[�	2����S�������X����$�S�$�$�$����X�$�$�$�$�$rN)�git.utilrr�symbolicrr�typingrr	r
rrr
�	git.typesrrr�git.repor�__all__r rr"rr�<module>r_s2����������6�5�5�5�5�5�5�5�
G�F�F�F�F�F�F�F�F�F�F�F�F�F�F�F�.�.�.�.�.�.�.�.�.�.���������
�-��

�(�3��7�"3�
���b��8I�
�
�
�
� p$�p$�p$�p$�p$�!�9�k�p$�p$�p$�p$�p$r

Hacked By AnonymousFox1.0, Coded By AnonymousFox