-
Notifications
You must be signed in to change notification settings - Fork 0
Warn users when Partio-Checkpoint trailers are dropped by commit rewrite operations #150
Copy link
Copy link
Open
Labels
Description
Description
When users reword commits via git rebase -i (reword action), git commit --amend, or git filter-branch --msg-filter, the rewrite operation replaces the entire commit message. If the replacement message does not include the Partio-Checkpoint: trailer, the session link is permanently lost — partio rewind and partio doctor show no checkpoint for those commits, with no explanation of why.
This was reported in entireio/cli#834.
What to fix
In partio doctor, add a check that scans recent commits for this pattern:
- Find commits where a
Partio-Checkpoint:trailer is missing but the reflog shows a prior version of the commit that had one, or where adjacent commits in the session have trailers but this one does not. - Report these commits with a clear message explaining that git rebase/amend operations can drop Partio trailers and how to avoid it.
- The check should be non-fatal and informational — it should not block any git operations.
Acceptance Criteria
partio doctordetects commits that are missing Partio-Checkpoint trailers and reports thempartio doctoroutput includes actionable guidance when trailer loss is detected- Detection covers git rebase reword, interactive rebase, and
git commit --amendscenarios make testpassesmake lintpasses
Source
Inspired by entireio/cli#834
Reactions are currently unavailable