store

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store handles reading and writing remarks to git notes

func New

func New() *Store

New creates a new Store

func (*Store) Add

func (s *Store) Add(commit string, r remark.Remark) error

Add adds a new remark to a commit

func (*Store) FindRemarkByID

func (s *Store) FindRemarkByID(id string) (string, *remark.Remark, error)

FindRemarkByID searches all remarks to find one by ID Returns the commit SHA and the remark if found

func (*Store) Get

func (s *Store) Get(commit string) (*remark.Remarks, error)

Get retrieves remarks for a commit

func (*Store) ListAllWithRemarks

func (s *Store) ListAllWithRemarks() (map[string]*remark.Remarks, error)

ListAllWithRemarks returns all commits that have remarks

func (*Store) Migrate

func (s *Store) Migrate(oldCommit, newCommit string) error

Migrate moves remarks from one commit to another

func (*Store) Remove

func (s *Store) Remove(commit string) error

Remove removes notes from a commit

func (*Store) Resolve

func (s *Store) Resolve(commit, remarkID string) (bool, error)

Resolve marks a remark as resolved by removing it

func (*Store) Save

func (s *Store) Save(commit string, remarks *remark.Remarks) error

Save writes remarks to a commit, overwriting any existing notes

func (*Store) UpdateRemark

func (s *Store) UpdateRemark(commit string, r remark.Remark) error

UpdateRemark updates an existing remark

Jump to

Keyboard shortcuts

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