module documentation

Utilities for reading and generating reflogs.

Function drop_reflog_entry Drop the specified reflog entry.
Function format_reflog_line Generate a single reflog line.
Function parse_reflog_line Parse a reflog line.
Function read_reflog Read reflog.
Variable Entry Undocumented
def drop_reflog_entry(f, index, rewrite=False):

Drop the specified reflog entry.

Parameters
fFile-like object
indexReflog entry index (in Git reflog reverse 0-indexed order)
rewriteIf a reflog entry's predecessor is removed, set its old SHA to the new SHA of the entry that now precedes it
def format_reflog_line(old_sha, new_sha, committer, timestamp, timezone, message):

Generate a single reflog line.

Parameters
old_shaOld Commit SHA
new_shaNew Commit SHA
committerCommitter name and e-mail
timestampTimestamp
timezoneTimezone
messageMessage
def parse_reflog_line(line):

Parse a reflog line.

Returns: Tuple of (old_sha, new_sha, committer, timestamp, timezone,
message)
Parameters
lineLine to parse
def read_reflog(f):

Read reflog.

Returns: Iterator over Entry objects

Parameters
fFile-like object
Entry =

Undocumented