yI{D
d Z ddlmZ ddlmZ ddlmZmZ ddlm Z ddl
mZmZm
Z
mZmZmZmZ ddlmZ e
rdd lmZ eZd
ZdZdZd
ZdZdZ G d de Z G d de Z G d de Z! G d de! Z"dS )z.Module with additional types used by the index )b2a_hex)Path )packunpack)Blob)
NamedTupleSequence
TYPE_CHECKINGTupleUnioncastList)PathLike)Repo)
BlobFilterBaseIndexEntry
IndexEntry StageTypei i 0 i @ i c R e Zd ZdZdZdee ddfdZdee e
f defdZdS )r z
Predicate to be used by iter_blobs allowing to filter only return blobs which
match the given list of directories or files.
The given paths are given relative to the repository.
pathsreturnNc || _ dS )z
:param paths:
tuple or list of paths which are either pointing to directories or
to files relative to the current repository
N)r )selfr s _/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/git/index/typ.py__init__zBlobFilter.__init__. s
stage_blobc ~ |d j }t |t r|nt | }| j D ]}t |t r|nt | }|j }|j }t | t | k rWt
d t || D r dS dS )Nr c 3 ( K | ]
\ }}||k V d S )N ).0ijs r