@ 261101.7

261026.10 · cb28c9556139b6aaddb064d0ae5f117d33a2e8b1

Stardates that could mislead now say what they name

Unpushed commits share their day and x, so a history's and the timeline's rows add each one's short hash, eg 261026.x 6376dd4. A repo whose main branch is neither main nor master follows the branch origin's HEAD names, after main and master, so no numbered repo is renumbered. A day alone, eg 261024, is refused as a commit's name, though six digits also read as hex. A declaration's diff page shows the full hash, as the commit page does.

reading declarations

Changes to lookup_test.go. All files

lookup_test.go

@@ -35,4 +35,9 @@ func TestLookupCommit(t *testing.T) { 			t.Errorf("%s in %s: exit %d, printed %q; want E2 and nothing", c.commit, c.dir, code, b.String()) 		} 	}+	// A day alone names many commits, though six digits are hex too.+	var b strings.Builder+	if code := lookupCommit(&b, config{dir: dir, commit: star[:6]}); code != int(syscall.EINVAL) {+		t.Errorf("%s: exit %d, want E22", star[:6], code)+	} }