Skip to content

perf: avoid full history rescans when repository refs change #1

Description

@nepinhum

gitlife currently skips repositories whose ref digest is unchanged but any ref movement triggers a complete git log --all and reparses every reachable commit.

This makes incremental sync cost proportional to total repository history rather than the amount of new/removed history.

Large repositories therefore become increasingly expensive even when only a handful of commits changed. Should investigate an incremental walk based on previously indexed object IDs/ref state while still correctly handling force-pushes, branch deletion and history becoming unreachable.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions