HEX
Server: Apache
System: Linux infong-uk86 4.4.400-icpu-106 #2 SMP Mon Sep 15 08:23:40 UTC 2025 x86_64
User: u44115835 (4976590)
PHP: 8.4.17
Disabled: NONE
Upload Files
File: //kunden/lib/python3/dist-packages/dulwich/__pycache__/reflog.cpython-39.pyc
a

�~�_�	�@sLdZddlZddlmZmZmZe�dgd��Zdd�Zdd	�Z	d
d�Z
dS)z.Utilities for reading and generating reflogs.
�N)�format_timezone�parse_timezone�ZERO_SHA�Entry��old_sha�new_sha�	committerZ	timestamp�timezone�messagecCsJ|durt}|d|d|dtt|���d�dt|�d|S)z�Generate a single reflog line.

    Args:
      old_sha: Old Commit SHA
      new_sha: New Commit SHA
      committer: Committer name and e-mail
      timestamp: Timestamp
      timezone: Timezone
      message: Message
    N� �ascii�	)r�str�int�encoderr�r�0/usr/lib/python3/dist-packages/dulwich/reflog.py�format_reflog_line%s�����rc	CsR|�dd�\}}|�dd�\}}}|�dd�\}}}t|||t|�t|�d|�S)z�Parse a reflog line.

    Args:
      line: Line to parse
    Returns: Tuple of (old_sha, new_sha, committer, timestamp, timezone,
        message)
    r�r�r)�split�rsplitrrr)	�lineZbeginrrr�restr	Z
timestamp_strZtimezone_strrrr�parse_reflog_line8s�rccs|D]}t|�VqdS)z_Read reflog.

    Args:
      f: File-like object
    Returns: Iterator over Entry objects
    N)r)�frrrr�read_reflogGsr)�__doc__�collectionsZdulwich.objectsrrr�
namedtuplerrrrrrrr�<module>s�