Commit 3e034c1
authored
fix(wiki-update): guard against rebase/force-push in delta computation (#65)
Before running `git log <last_commit>..HEAD`, check ancestry with
`git merge-base --is-ancestor`. If the stored SHA is no longer
reachable (branch rebased or force-pushed), warn the user and fall back
to a full scan rather than silently under/over-ingesting.
Tested on st3ve: verified exit 0 for valid ancestor, exit 1 after
simulated rebase and amend.
Closes #64 (partial — addresses the rebase fragility raised in discussion)1 parent 6f20faa commit 3e034c1
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
40 | 45 | | |
41 | 46 | | |
42 | 47 | | |
| |||
0 commit comments