관리-도구
편집 파일: fun.cpython-311.pyc
� �܋f�! � �� � d Z ddlmZ ddlmZmZ ddlmZmZm Z m Z mZmZm Z mZ erddlmZ ddlmZ eeeef Ze edf ZdZd e e d edge edf f ddfd �Zdedee fd�Zde e dedededef d�Zedddeddfd�� � Zedededefd�� � Zdededefd�Zddde e edf dedeeedf fd�Zdddededee fd �ZdS )!zBModule with functions which are supposed to be as fast as possible� )�S_ISDIR)�safe_decode�defenc)�Callable�List�MutableSequence�Sequence�Tuple� TYPE_CHECKING�Union�overload)�ReadableBuffer)�GitCmdObjectDBN)�tree_to_stream�tree_entries_from_data�traverse_trees_recursive�traverse_tree_recursive�entries�writer �returnc �v � t d� � }d}| D ]�\ }}}d}t d� � D ]!}t ||dz z |z |z g� � |z }�"|d |k r |dd� }t |t � � r|� t � � } n|} |d� |d | d |f� � � � ��dS )z�Write the give list of entries into a stream using its write method :param entries: **sorted** list of tuples with (binsha, mode, name) :param write: write method which takes a data string�0� � � � r � N� � )�ord�range�bytes� isinstance�str�encoder �join) r r �ord_zero�bit_mask�binsha�mode�name�mode_str�i� name_bytess �`/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/git/objects/fun.pyr r &