관리-도구
편집 파일: remote.cpython-311.pyc
� �܋f� � � � d dl Z d dlmZ ddlmZ dgZd dlmZmZm Z m Z mZ d dlm Z erd dlmZ d d lmZ G d � de� � ZdS )� N)� join_path� )�Head�RemoteReference)�Any�Iterator�NoReturn�Union� TYPE_CHECKING)�PathLike)�Repo)�Remotec �� � � e Zd ZdZej Ze ddddee df ded de d e d ed f� fd� � � Zedddd d e d dfd �� � Z ede d e d efd�� � Z� xZS )r z1Represents a reference pointing to a remote head.N�repor �common_path�remote)r N�args�kwargs�returnc � �� |p| j }|�t |t |� � � � }t t | � � � ||� � S )zKIterate remote references, and if given, constrain them to the given remote)�_common_path_defaultr �str�superr � iter_items)�clsr r r r r � __class__s ��`/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/git/refs/remote.pyr zRemoteReference.iter_items sO �� � "�=�S�%=����#�K��V���=�=�K� �_�c�*�*�5�5�d�K�H�H�H� �refsc �n � |j j ddg|�R � |D ]�} t j t j � |j |j � � � � n# t $ r Y nw xY w t j t j � |j |j � � � � ��# t $ r Y ��w xY wdS )z�Delete the given remote references :note: kwargs are given for comparability with the base class method as we should not narrow the signature.z-dz-rN) �git�branch�os�remove�path�join� common_dir�OSError�git_dir)r r r r �refs r �deletezRemoteReference.delete2 s� � � �����d�*�T�*�*�*�*� � � �C� �� �"�'�,�,�t����A�A�B�B�B�B��� � � ��� ���� �� �"�'�,�,�t�|�S�X�>�>�?�?�?�?��� � � ��� ���� � s# �<A� A$�#A$�(<B%�% B2�1B2c � � t d� � �)zUsed to disable this methodz*Cannot explicitly create remote references)� TypeError)r r r s r �createzRemoteReference.createH s � � �D�E�E�Er )NN)�__name__� __module__�__qualname__�__doc__r �_remote_common_path_defaultr �classmethodr r r r r r+ r r. � __classcell__)r s @r r r s; �� � � � � �;�;��;��� .2�(,� I� I��I� �8�T�>�*�I� �n�%� I� �I� � I� �#� $�I� I� I� I� I� �[�I�( ��&� �):� �c� �d� � � � �[��* �F�3� F�#� F�(� F� F� F� �[�F� F� F� F� Fr )r# �git.utilr �headr �__all__�typingr r r r r � git.typesr �git.repor r! r r � r r �<module>r= s� �� � � � � � � � � � � � � � � � � � �� A� @� @� @� @� @� @� @� @� @� @� @� @� @� � � � � � � � ������������� 4F� 4F� 4F� 4F� 4F�d� 4F� 4F� 4F� 4F� 4Fr