Skip to content

Show descriptive checkpoint push status (up-to-date vs new content) #195

@jcleira

Description

@jcleira

Summary

When Partio pushes the checkpoint branch during pre-push, it always shows the same message regardless of whether new data was actually transferred. Users can't tell if their checkpoints are being synced or if it was a no-op.

What to implement

Parse the output of git push for the checkpoint branch and show distinct messages:

  • [partio] Pushing partio/checkpoints/v1… done — when new checkpoints were pushed
  • [partio] Pushing partio/checkpoints/v1… already up-to-date — when nothing new to push

Context

  • internal/hooks/prepush.go — pre-push hook implementation
  • internal/git/push_branch.goPushBranch() function

Why

Users who push frequently see identical messages every time and can't tell if checkpoint data is actually flowing. This is especially confusing when debugging checkpoint remote issues.

Inspired by: entireio/cli#927

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions