timeline

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package timeline holds higher-level operations over the event log.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SyncCommits

func SyncCommits(path, base string) (int, error)

SyncCommits appends a commit event for every base..HEAD commit not already on the timeline, in commit order (oldest first). It is idempotent: commits whose sha is already present are skipped, so it is safe to run on every TUI open. Returns the number of new events appended.

func WithCommits

func WithCommits(events []event.Event, commits []git.Commit) []event.Event

WithCommits returns events plus every commit not already represented, without writing the timeline. New commit events are appended in commit order.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL