관리-도구
편집 파일: symbolic.cpython-311.pyc
� �܋fu � �b � d dl mZ d dlZd dlmZ d dlmZ d dlmZ d dl m Z mZmZm Z mZmZ d dlmZmZ dd lmZ d d lmZmZmZmZmZmZmZmZmZ d dl mZmZ er$d dl m!Z! d d l"m#Z#m$Z$m%Z%m&Z& ddlm'Z' d dl(m)Z) d dlm*Z* edd�� � Z+dgZ,dddeedf defd�Z- G d� de.� � Z/dS )� )�PathLikeN)�defenc)�Object)�Commit)� join_path�join_path_native�to_native_path_linux�assure_directory_exists� hex_to_bin�LockedFD)� BadObject�BadName� )�RefLog) �Any�Iterator�List�Tuple�Type�TypeVar�Union� TYPE_CHECKING�cast)� Commit_ishr )�Repo��Head�TagReference�RemoteReference� Reference)�RefLogEntry)�GitConfigParser)�Actor�T_References�SymbolicReference)�bound�repor �path�returnc �, � |� }|dv r| j S | j S )z0Find the git dir that's appropriate for the path)�HEAD� ORIG_HEAD� FETCH_HEAD�index�logs)�git_dir� common_dir)r'