Repository navigation
Open
Description
- Owner: @DanisLol ·
minigit/commits.py,tests/test_commits.py - Deliverables: history/merge segment for
docs/demo.md,docs/writeups/module-3.md, shared CLI documentation corrections - Depends on: Week 8 - M3: History performance + final CLI consistency audit #57; coordinate working-tree behavior with Week 8 - M2: Status/diff performance + working-tree regression checks #56 and use the Week 8 checkpoint from Week 8 - M4: Network performance + final end-to-end checkpoint #58
- Branch from updated
main:docs/week9-history-merge-demo - Plan: Weeks 9-10 buffer, stretch goals, and demo prep
Current checkpoint (2026-11-18)
- Starting point: Polish log output and CLI errors #66 supplies detailed/compact log output and merge-result/status helpers. Complete Week 8 - M3: History performance + final CLI consistency audit #57's shared audit and measured history pass before final verification.
- Remaining deliverables:
docs/writeups/module-3.md, a reproducible history/merge/conflict segment in the shared runbook, and teammate rehearsal evidence on the integrated revision. - The older command notes mention
checkout -b, detached checkout, andclone; the current CLI does not offer these variants. Document the supported commands and limitations explicitly. They are not new required features for the original 10-week deliverables; any selected extension needs a separate scoped issue.
Scope
Make the delivered commit graph and merge behavior easy to demonstrate and explain. Complete the Week 7/8 prerequisites before final verification. Preserve existing commit/ref APIs, parent ordering, fetched-tip integration, and M3's ownership of refs, HEAD, and pending merge state.
Steps
- Review Week 8 - M3: History performance + final CLI consistency audit #57 and carry forward its unresolved history/CLI findings with existing links. Fix concrete integration blockers found in rehearsal; avoid another unmeasured optimization pass.
- Build a small, understandable demo history through the CLI: root commit, branch creation, a fast-forward, and two divergent branches with non-overlapping edits that produce a clean two-parent merge. Explain branch refs and HEAD with a small graph in the walkthrough.
- Rehearse an overlapping edit with M2: merge reports conflicts without advancing branch tips, unresolved paths block commit, explicit resolve ->
add-> commit works across fresh processes, and the resulting parents remain[local_tip, other_tip]. - Show that log traverses both parents and includes shared ancestors once. Reuse existing graph tests for skewed/equal timestamps and second-parent ancestry; add regressions only for gaps exposed by new fixes.
- Check the demo's commands, help, stdout/stderr, and exit codes against the delivered CLI. Document supported behavior precisely. Treat unimplemented command variants from older design notes as limitations or separate proposals rather than silently adding them to this issue.
- Draft
docs/writeups/module-3.md: immutable snapshots, refs/HEAD, ancestry and merge-base choices, fast-forward versus three-way merge, conflict persistence, fetched-tip integration, key tradeoffs, and what you would change next. Reference measured Week 8 history results where relevant. - Contribute history/ref assertions to M4's integrated rehearsal and have a teammate reproduce the history segment from a clean temporary repository. Record the tested revision and link any remaining blocker.
- Contribute a feasibility assessment of the plan's optional stretch goals to M4's triage, including the impact of rebase/hooks/TUI/submodules on the current contracts. No stretch implementation is required unless the team selects a separately scoped task after core readiness.
- Run
scripts/quality-check.sh; open a linked PR with the writeup and any focused fixes, and request teammate review.
Done when
- Fast-forward, clean two-parent merge, and persistent conflict resolution are reproducible
- History output and documented CLI behavior match the delivered implementation
- New fixes preserve refs, parent order, and local-work protections and have focused regressions
- Module 3 writeup and history demo segment are ready for teammate review
- Remaining findings have reproductions and owners; quality check is green; linked PR and review request are ready
Activity