aboutsummaryrefslogtreecommitdiff
path: root/gui/internal/model/plan.go
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-09-17 12:11:42 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-09-17 12:11:42 +0200
commitbddbd74e4a73e8e32bcf648efd1cac5655f6d0cd (patch)
tree187e6a1fb722d9ab97d2076f69f997f5d371e943 /gui/internal/model/plan.go
parentcd7425b81f963a948f0abe7df3f9e58e190c2b78 (diff)
downloadkrino-bddbd74e4a73e8e32bcf648efd1cac5655f6d0cd.tar.gz
krino-bddbd74e4a73e8e32bcf648efd1cac5655f6d0cd.zip
comments that explain the code, not how it was written
About 340 comments cited the development process: task and plan numbers, fix waves, rulings, reviewers, and the author in the third person with a date. None of that exists outside the work itself, so to a reader it pointed at nothing. Each one now states the engineering reason it was standing in front of; where a comment was provenance and nothing else, it is gone. References to docs/design.md and docs/gui-design.md by section stay: both ship with the repository. The design documents lose their amendment diaries - CHANGELOG.md is that record - and the GUI's says plainly that the window has gone further than the document. Only comments changed. Every .go file was parsed and its code printed with comments stripped, before and after: the two hashes are identical across all 175 files.
Diffstat (limited to 'gui/internal/model/plan.go')
-rw-r--r--gui/internal/model/plan.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/gui/internal/model/plan.go b/gui/internal/model/plan.go
index 7c24991..12b0d13 100644
--- a/gui/internal/model/plan.go
+++ b/gui/internal/model/plan.go
@@ -240,8 +240,7 @@ func (t *PlanTab) Replace(i int, kind plan.Kind) error {
// ReplaceSelected swaps the steps of every checked file for the one action
// chosen - "Trash the checked files", "Delete them permanently" - and
// reports how many were changed. Nothing happens on disk: like every other
-// review decision, it changes the plan, and Apply carries it out (his
-// request, 2026-09-17).
+// review decision, it changes the plan, and Apply carries it out.
func (t *PlanTab) ReplaceSelected(kind plan.Kind) (int, error) {
n := 0
for i, r := range t.Rows {
@@ -261,7 +260,7 @@ func (t *PlanTab) ReplaceSelected(kind plan.Kind) (int, error) {
// the Trash, where krino undo can still reach it. It is a review decision,
// like trashing a file by hand, so the rule that a duplicate is never
// deleted - which binds rules, not the person reading the plan - does not
-// stand in its way (his request, 2026-09-17).
+// stand in its way.
func (t *PlanTab) KeepThisCopy(i int) error {
if i < 0 || i >= len(t.Rows) {
return fmt.Errorf("model: no row %d", i)
@@ -339,7 +338,7 @@ func (t *PlanTab) record(res *engine.ApplyResult) {
// AgeText is how long ago a file was last written, in the units krino's own
// (age ...) test uses: minutes, hours, days and weeks, and years past that,
-// so a plan can be read at a glance (his request, 2026-09-17).
+// so a plan can be read at a glance.
func AgeText(mod time.Time, now time.Time) string {
if mod.IsZero() {
return ""