/opt/cloudlinux/venv/lib/python3.11/site-packages/git/refs/__pycache__
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/git/refs/__pycache__/head.cpython-311.pyc (12610B)
§
Ì+GÕ[µòã óæ — d dl mZmZ d dlmZ d dlmZ ddlmZ ddl m
Z
d dlmZm
Z
mZmZ d dlmZmZ erd d lmZ d d
lmZ d dlmZ dd
gZdedefd„Z G d„ de¦ « Z G d„ d
e
¦ « ZdS )é )ÚGitConfigParserÚSectionConstraint)Ú join_path)ÚGitCommandErroré )ÚSymbolicReference)Ú Reference)ÚAnyÚSequenceÚUnionÚ
TYPE_CHECKING)ÚPathLikeÚ
Commit_ish)ÚRepo)ÚCommit©ÚRemoteReferenceÚHEADÚHeadÚstringÚreturnc ón — | d¦ « r| d¦ « r
| dd… S | S )Nú"r éÿÿÿÿ)Ú
startswithÚendswith)r s ú_/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/git/refs/head.pyÚstrip_quotesr s> € Ø
×Ò˜ÑÔð &§/¢/°#Ñ"6Ô"6ð Ø�a˜�dŒ|ÐØ€Mó c
ó¢ ‡ — e Zd ZdZd ZdZdZefdddefˆ fd„
Zde fd „Z
dd
eee e
f dededeeee df dedd fd„Zˆ xZS )r zZSpecial case of a Symbolic Reference as it represents the repository's
HEAD reference.Ú ORIG_HEAD© Úrepor Úpathc ó¨ •— || j k rt d| j ›d|›�¦ « ‚t t | ¦ « ||¦ « | d S )NzHEAD instance must point to z, got )Ú
_HEAD_NAMEÚ
ValueErrorÚsuperr Ú__init__)Úselfr# r$ Ú __class__s €r r) z
HEAD.__init__' s[ ø€ Ø�4”?Ò"Ð"Ý�*ÈÌÈÈÐZ^ÐZ^Ð_Ñ`Ô`Ð`Ý
�d�DÑÔ×"Ò" 4¨Ñ.Ô.Ð.ØÐÐÐr r c ó6 — t | j | j ¦ « S )z„
:return: SymbolicReference pointing at the ORIG_HEAD, which is maintained
to contain the previous value of HEAD)r r# Ú_ORIG_HEAD_NAME©r* s r Ú orig_headzHEAD.orig_head- s € õ ! ¤¨DÔ,@ÑAÔAÐAr TFNÚcommitÚindexÚworking_treeÚpathsÚkwargsc óÄ — d}|rd}|rd}|rd}|st d¦ « ‚ | j j j ||d|fi |¤Ž n## t $ r}|j dk r‚ Y d}~nd}~ww xY w| S )aÑ Reset our HEAD to the given commit optionally synchronizing
the index and working tree. The reference we refer to will be set to
commit as well.
:param commit:
Commit object, Reference Object or string identifying a revision we
should reset HEAD to.
:param index:
If True, the index will be set to match the given commit. Otherwise
it will not be touched.
:param working_tree:
If True, the working tree will be forcefully adjusted to match the given
commit, possibly overwriting uncommitted changes without warning.
If working_tree is True, index must be true as well
:param paths:
Single path or list of paths relative to the git root directory
that are to be reset. This allows to partially reset individual files.
:param kwargs:
Additional arguments passed to git-reset.
:return: selfz--softz--mixedNz--hardz?Cannot reset the working tree if the index is not reset as wellz--r )r' r# ÚgitÚresetr Ústatus)r* r0 r1 r2 r3 r4 ÚmodeÚes r r7 z
HEAD.reset3 s¾ € ðD ˆØð ؈Dð ð
Ø�ð ð d؈DØð
dÝ Ð!bÑcÔcÐcð ØˆDŒIŒMÔ f¨d°EÐDÐD¸VÐDÐDÐDÐDøÝð ð ð ð Œx˜1Š}ˆ}Øð ˆ}ˆ}ˆ}ˆ}øøøøð øøøð ˆs ¡= ½
AÁAÁA)r TFN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r&