File: //opt/saltstack/salt/lib/python3.10/site-packages/git/refs/__pycache__/log.cpython-310.pyc
o
;jD1 �
@ s� d dgZ ddlmZ ddlZddlZddlmZ ddlmZm Z m
Z
ddlmZm
Z
mZmZmZmZmZ ddlmZmZmZmZmZ dd lmZ er^dd
lmZ ddlmZmZ ddl m!Z! G d
d� dee"e"eee#e#f e"f �Z$G dd � d ee$ e�Z%dS )�RefLog�RefLogEntry� )�mmapN)�defenc)�Serializable�altz_to_utctz_str�
parse_date)�Actor�LockedFD�LockFile�assure_directory_exists�
bin_to_hex�file_contents_ro_filepath�to_native_path)�Iterator�List�Tuple�
TYPE_CHECKING�Union)�PathLike)�BytesIO)�GitConfigParser�SectionConstraint)�SymbolicReferencec @ s� e Zd ZdZe�d�ZdZdefdd�Z defdd�Z
edefd d
��Zedefdd��Z
edefd
d��Zedeeef fdd��Zedefdd��Zedededededededd fdd��Zededd fdd��ZdS )r z;Named tuple allowing easy access to the revlog data fields.z^[0-9A-Fa-f]{40}$� �returnc C s | � � S )z1Representation of ourselves in git reflog format.)�format��selfr r �@/opt/saltstack/salt/lib/python3.10/site-packages/git/refs/log.py�__repr__0 s zRefLogEntry.__repr__c
C s8 | j }| j}d�| j| j|j|j|d t|d �| j�S )z9:return: A string suitable to be placed in a reflog file.z{} {} {} <{}> {!s} {} {}
r � ) �actor�timer � oldhexsha� newhexsha�name�emailr �message)r Zactr# r r r r 4 s
�zRefLogEntry.formatc C � | d S )z>The hexsha to the commit the ref pointed to before the change.r r r r r r r$ B � zRefLogEntry.oldhexshac C r) )zAThe hexsha to the commit the ref now points to, after the change.r! r r r r r r% G r* zRefLogEntry.newhexshac C r) )z!Actor instance, providing access.� r r r r r r"