1j& d dl mZmZ ddlmZmZ d dlmZmZm Z m
Z
mZmZ d dl
mZmZmZ erd dlmZ dgZded ef d
ed ef fdZ G d deee Zd
S ) ) LazyMixinIterableObj )SymbolicReferenceT_References)AnyCallableIteratorTypeUnion
TYPE_CHECKING)
Commit_ishPathLike_T)Repo Referencefunc.returnc V dt dt dt f fd} j |_ |S )zOA decorator raising a TypeError if we are not a valid remote, based on the pathselfargsr c l | st d| j z | g|R S )Nz1ref path does not point to a remote reference: %s) is_remote
ValueErrorpath)r r r s d/builddir/build/BUILD/cloudlinux-venv-1.0.11/venv/lib/python3.11/site-packages/git/refs/reference.pywrapperz(require_remote_ref_path..wrapper sF ~~ ^PSWS\\]]]tD 4 )r r r __name__)r r s ` r require_remote_ref_pathr sG !l !3 !2 ! ! ! ! ! ! }GNr c ` e Zd ZdZdZdZdZdZdddded e d
df fd
Z
d
efd
Z dde
edef de
edf d
d f fd
Zed
efd Ze ddee ddde
edf deded
ee fd Zeed
efd Zeed
efd Z xZS )r zRepresents a named reference to any object. Subclasses may apply restrictions though,
i.e. Heads can only point to commits. FTrefsrepor r
check_pathr Nc |rIt | | j dz st d| j j d| | t
t | || dS )ab Initialize 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__)r r$ r r% r+ s r r- zReference.__init__2 s ac$ii2243Ls3RSS a_4>3J__Y]__```
i''d33333r c | j S N)name)r s r __str__zReference.__str__@ s
yr objectr logmsgc d}|*| j j }|j s|j | k r| j j }t
t | || | | j j || | S )z[Special version which checks if the head-log needs an update as well
:return: selfN)
r$ headis_detachedrefcommitbinshar, r
set_object
log_append)r r2 r3 oldbinshar5 r+ s r r: zReference.set_objectF s 9>D#
/D(8(8 K. i))&&999
IN%%i888 r c | j d }t | dk r| j S d |dd S )zK:return: (shortest) Name of this reference - it may contain path componentsr' N)r splitlenjoinr tokenss r r0 zReference.namel sH
%%v;;??9xxqrr
###r clscommon_pathr kwargsc . | || S )zdEquivalent to SymbolicReference.iter_items, but will return non-detached
references as well.)_iter_items)rE r$ rF r rG s r
iter_itemszReference.iter_itemsv s t[111r c F | j d }|d S )z
:return:
Name of the remote we are a reference of, such as 'origin' for a reference
named 'origin/master'r' r? )r r@ rC s r remote_namezReference.remote_name s! %%ayr c 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)r r@ rB rC s r remote_headzReference.remote_head s1 %%xxqrr
###r )Tr/ )r
__module____qualname____doc__ __slots___points_to_commits_only_resolve_ref_on_creater* r boolr- r( r1 r r r: propertyr0 classmethodr r r r
rJ r rL rN
__classcell__)r+ s @r r r ( s - - I#!!4 4V 48 4 4QU 4 4 4 4 4 4 $(" "j"5s:;" c4i "
" " " " " "L $c $ $ $ X$ .2 2 2
,
2 2 8T>* 2 2
2
,
2 2 2 [ 2 S X $S $ $ $ X$ $ $ $ $r N)git.utilr r symbolicr r typingr r r
r r r
git.typesr r r git.repor __all__r r r" r r 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 . . . . . . . . . .
-
(37"3
b8I
p$ p$ p$ p$ p$!9k p$ p$ p$ p$ p$r