File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/git/refs/__pycache__/symbolic.cpython-310.pyc
Back
o ;j+� � @ s2 d gZ ddlZddlmZ ddlmZmZ ddlmZ ddl m Z ddlmZ ddl mZ dd lmZmZmZmZmZmZ dd lmZmZmZmZmZmZmZmZmZ ddl m!Z!m"Z" er{ddl#m$Z$ dd lm%Z% ddl m&Z& ddl'm(Z( ddl)m*Z* edd d�Z+dddee"df de"fdd�Z,G dd � d �Z-dS )�SymbolicReference� N)�Path)�BadName� BadObject)�defenc)�Object)�Commit)�RefLog)�LockedFD�assure_directory_exists� hex_to_bin� join_path�join_path_native�to_native_path_linux) �Any�Iterator�List� TYPE_CHECKING�Tuple�Type�TypeVar�Union�cast)�AnyGitObject�PathLike)�GitConfigParser)�Actor)�RefLogEntry)� Reference)�Repo�T_References)�bound�repor �path�returnc C s |� }|dv r | j S | jS )z2Find the git dir that is appropriate for the path.)�HEADZ ORIG_HEADZ FETCH_HEAD�index�logs)�git_dir� common_dir)r"