/opt/cloudlinux/venv/lib/python3.11/site-packages/git/refs/__pycache__
NameSizeModeActions
head.cpython-311.pyc126100644editdlrm
log.cpython-311.pyc170700644editdlrm
reference.cpython-311.pyc64920644editdlrm
remote.cpython-311.pyc34200644editdlrm
symbolic.cpython-311.pyc363330644editdlrm
tag.cpython-311.pyc51990644editdlrm
__init__.cpython-311.pyc3780644editdlrm
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/git/refs/__pycache__/head.cpython-311.pyc (12610B)
§ Ì+GÕ[µòãóæ—ddlmZmZddlmZddlmZddlmZddl m Z ddl m Z m Z mZmZddlmZmZerdd lmZdd lmZdd lmZd d gZdedefd„ZGd„d e¦«ZGd„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)rs ú_/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/git/refs/head.pyÚ strip_quotesrs>€Ø ×Ò˜ÑÔð &§/¢/°#Ñ"6Ô"6ðØ�a˜�dŒ|ÐØ €Móc 󢇗eZdZdZdZdZdZefdddefˆfd„ Zde fd „Z dd e e e e fdedede eeed fdeddf d„ZˆxZS)rzZSpecial case of a Symbolic Reference as it represents the repository's HEAD reference.Ú ORIG_HEAD©ÚreporÚpathc󨕗||jkrtd|j›d|›�¦«‚tt|¦« ||¦«|dS)NzHEAD instance must point to z, got )Ú _HEAD_NAMEÚ ValueErrorÚsuperrÚ__init__)Úselfr#r$Ú __class__s €rr)z HEAD.__init__'s[ø€Ø �4”?Ò "Ð "Ý�*ÈÌÈÈÐZ^ÐZ^Ð_Ñ`Ô`Ð `Ý �d�DÑÔ×"Ò" 4¨Ñ.Ô.Ð.Ø ÐÐÐrrcó6—t|j|j¦«S)z„ :return: SymbolicReference pointing at the ORIG_HEAD, which is maintained to contain the previous value of HEAD)rr#Ú_ORIG_HEAD_NAME©r*s rÚ orig_headzHEAD.orig_head-s€õ! ¤¨DÔ,@ÑAÔAÐArTFNÚcommitÚindexÚ working_treeÚpathsÚkwargsc óÄ—d}|rd}|rd}|rd}|std¦«‚ |jjj||d|fi|¤Žn##t$r}|jdkr‚Yd}~nd}~wwxYw|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*r0r1r2r3r4ÚmodeÚes rr7z HEAD.reset3s¾€ð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)rTFN)Ú__name__Ú __module__Ú __qualname__Ú__doc__r&r-Ú __slots__rr)rr/r rÚstrÚboolr r r7Ú __classcell__)r+s@rrrsø€€€€€ððð€JØ!€OØ€Ià6@ðð˜Vð¨8ððððððð BÐ,ðBðBðBðBð=CØØ"Ø;?ð =ð=à�jÐ"3°SÐ8Ô9ð=ðð=ðð =ð �X˜x¨Ô1°4Ð7Ô8ð =ð ð =ð ð=ð=ð=ð=ð=ð=ð=ð=rc ó—eZdZdZdZdZdZeddœddd d d ed e d df d„¦«Z de dd dfd„Z d e dfd„Z dded ed dfd„Zdd ed e d e dfd„Zded eefd„Zd eefd„Zd eefd„ZdS)ra”A Head is a named reference to a Commit. Every Head instance contains a name and a Commit object. Examples:: >>> repo = Repo("/path/to/repo") >>> head = repo.heads[0] >>> head.name 'master' >>> head.commit >>> head.commit.hexsha '1c09f116cbc2cb4100fb6935bb162daa4723f455'z refs/headsÚremoteÚmergeF)Úforcer#rÚheadszUnion[Head, str]rFr4rNcó8—d}|rd}|jj|g|¢RŽdS)zÄDelete the given heads :param force: If True, the heads will be deleted even if they are not yet merged into the main development stream. Default Falsez-dz-DN)r6Úbranch)Úclsr#rFrGr4Úflags rÚdeletez Head.deleteŠs8€ðˆØ ð ØˆD؈ŒŒ˜Ð%˜uÐ%Ð%Ð%Ð%Ð%Ð%rÚremote_reference)rNcóB—ddlm}|�"t||¦«std|z¦«‚| ¦«5}|€n| |j¦«| |j¦«t|  ¦«¦«dkr|  ¦«nX|  |j|j ¦«|  |jt |j¦«¦«ddd¦«n #1swxYwY|S)a  Configure this branch to track the given remote reference. This will alter this branch's configuration accordingly. :param remote_reference: The remote reference to track or None to untrack any references :return: selfrrNzIncorrect parameter type: %rr)rDrÚ isinstancer'Ú config_writerÚ remove_optionÚk_config_remoteÚk_config_remote_refÚlenÚoptionsÚremove_sectionÚ set_valueÚ remote_namerÚ to_full_pathÚ remote_head)r*rMrÚwriters rÚset_tracking_branchzHead.set_tracking_branch—sb€ð ,Ð+Ð+Ð+Ð+Ð+à Ð 'µ Ð;KÈ_Ñ0]Ô0]Ð 'ÝÐ;Ð>NÑNÑOÔOÐ Oð× Ò Ñ !Ô !ð  VØÐ'Ø×$Ò$ TÔ%9Ñ:Ô:Ð:Ø×$Ò$ TÔ%=Ñ>Ô>Ð>Ý�v—~’~Ñ'Ô'Ñ(Ô(¨AÒ-Ð-Ø×)Ò)Ñ+Ô+Ð+øà× Ò  Ô!5Ð7GÔ7SÑTÔTÐTØ× Ò ØÔ,Ý×%Ò%Ð&6Ô&BÑCÔCñôðð ð ð ñ ô ð ð ð ð ð ð øøøð ð ð ð ðˆ s¿C DÄDÄDc óÞ—ddlm}| ¦«}| |j¦«r¸| |j¦«ržt |jt  t|  |j¦«¦«¦«¦«}|jt|  |j¦«|j ¦«¦«}||j|¦«SdS)zk :return: The remote_reference we are tracking, or None if we are not a tracking branchrrN) rDrÚ config_readerÚ has_optionrRrSrr#rYrÚ get_valuerÚname)r*rÚreaderÚrefÚremote_refpaths rÚtracking_branchzHead.tracking_branch´så€ð ,Ð+Ð+Ð+Ð+Ð+à×#Ò#Ñ%Ô%ˆØ × Ò ˜TÔ1Ñ 2Ô 2ð >°v×7HÒ7HÈÔIaÑ7bÔ7bð >ÝØ” Ý×!Ò!¥,¨v×/?Ò/?ÀÔ@XÑ/YÔ/YÑ"ZÔ"ZÑ[Ô[ñôˆCð:˜_Ô9½)ÀF×DTÒDTÐUYÔUiÑDjÔDjÐloÔltÑ:uÔ:uÑvÔvˆNØ"�? 4¤9¨nÑ=Ô=Ð =ðˆtrÚnew_pathcóv—d}|rd}|jj |||¦«|j›d|›�|_|S)aˆRename self to a new path :param new_path: Either a simple name or a path, i.e. new_name or features/new_name. The prefix refs/heads is implied :param force: If True, the rename will succeed even if a head with the target name already exists. :return: self :note: respects the ref log as git commands are usedz-mz-Mú/)r#r6rIÚ_common_path_defaultr$)r*rfrFrKs rÚrenamez Head.renameÇsN€ðˆØ ð ØˆDà Œ Œ ×Ò˜T 4¨Ñ2Ô2Ð2Ø#Ô8Ð8Ð8¸(¸(ÐCˆŒ ؈ r)rrc óÌ—||d<|ddur| d¦«|jjj|fi|¤Ž|jjjr |jjS|jjS)arCheckout this head by setting the HEAD to this reference, by updating the index to reflect the tree we point to and by updating the working tree to reflect the latest index. The command will fail if changed working tree files would be overwritten. :param force: If True, changes to the index and the working tree will be discarded. If False, GitCommandError will be raised in that situation. :param kwargs: Additional keyword arguments to be passed to git checkout, i.e. b='new_branch' to create a new branch at the given spot. :return: The active branch after the checkout operation, usually self unless a new branch has been created. If there is no active branch, as the HEAD is now detached, the HEAD reference will be returned instead. :note: By default it is only allowed to checkout heads - everything else will leave the HEAD detached which is allowed and possible, but remains a special state that some tools might not be able to handle.ÚfF)Úpopr#r6ÚcheckoutÚheadÚ is_detachedÚ active_branch)r*rFr4s rrnz Head.checkoutÜsn€ð2ˆˆs‰ Ø �#Œ;˜%Ð Ð Ø �JŠJ�s‰OŒOˆOàˆŒ Œ Ô˜tÐ.Ð. vÐ.Ð.Ð.Ø Œ9Œ>Ô %ð +Ø”9”>Ð !à”9Ô*Ð *rÚ read_onlycóœ—|r|j ¦«}n|j ¦«}t|d|jz¦«S)Nz branch "%s")r#r^rPrra)r*rrÚparsers rÚ_config_parserzHead._config_parsersK€Ø ð /Ø”Y×,Ò,Ñ.Ô.ˆFˆFà”Y×,Ò,Ñ.Ô.ˆFõ! ¨¸¼Ñ)BÑCÔCÐCrcó.—| d¬¦«S)zm :return: A configuration parser instance constrained to only read this instance's valuesT©rr©rur.s rr^zHead.config_reader s€ð×"Ò"¨TÐ"Ñ2Ô2Ð2rcó.—| d¬¦«S)zp :return: A configuration writer instance with read-and write access to options of this headFrwrxr.s rrPzHead.config_writers€ð×"Ò"¨UÐ"Ñ3Ô3Ð3r)F)r;r<r=r>rirRrSÚ classmethodrAr rLr r\rerrjrnrrrur^rPr"rrrrssž€€€€€ð6ð6ð"(ÐØ€OØ!ÐàØLQð &ð &ð &˜&ð &Ð*<ð &ÀTð &Ð]`ð &Ðeið &ð &ð &ñ„[ð &ð°EÐ:QÔ4RðÐW]ððððð: Ð'>Ô!?ððððð&ð˜xð°ðÀððððð*!+ð!+˜dð!+°cð!+¸eÀNÔ>Sð!+ð!+ð!+ð!+ðHD¨ðDÐ1BÀ?Ô1SðDðDðDðDð3Ð0°ÔAð3ð3ð3ð3ð 4Ð0°ÔAð4ð4ð4ð4ð4ð4rN)Ú git.configrrÚgit.utilrÚgit.excrÚsymbolicrÚ referencer Útypingr r r r Ú git.typesrrÚgit.reporÚ git.objectsrÚgit.refsrÚ__all__r@rrrr"rrúr†s�ðØ9Ð9Ð9Ð9Ð9Ð9Ð9Ð9ØÐÐÐÐÐØ#Ð#Ð#Ð#Ð#Ð#à'Ð'Ð'Ð'Ð'Ð'Ø Ð Ð Ð Ð Ð ð7Ð6Ð6Ð6Ð6Ð6Ð6Ð6Ð6Ð6Ð6Ð6à*Ð*Ð*Ð*Ð*Ð*Ð*Ð*àð)ØÐÐÐÐÐØ"Ð"Ð"Ð"Ð"Ð"Ø(Ð(Ð(Ð(Ð(Ð(ð �6Ð €ð˜ð ððððð RðRðRðRðRÐ ñRôRðRðj`4ð`4ð`4ð`4ð`4ˆ9ñ`4ô`4ð`4ð`4ð`4r