| Comment: | fix(cli): print usage errors on stderr and pin their exit status 80
The documented status was right for the binary; go run turns it into 1. Usage text went to stdout, so an embedder reading stdout saw it on a failure. The doc now says which status a measurement under go run shows, and a test pins 80 for an unknown flag, a missing flag or argument and an unknown subcommand. |
|---|---|
| Timelines: | family | ancestors | descendants | both | main | trunk | feat/cli-snapshot |
| Files: | files | file ages | folders |
| SHA3-256: |
8fdb63278345a56855d8df7213c73792 |
| User & Date: | [email protected] on 2026-10-19 22:55:46.000 |
| Other Links: | branch diff | manifest | tags |
|
2026-10-19
| ||
| 22:57 |
fix(cli): refuse a snapshot path holding a control byte or a reserved name
validateRepoPath now applies fossil's own rules for a new file name: file_is_simple_pathname in strict form (deck.StrictPathname), no byte below 0x20, and file_is_reserved_name, whose existing port in deck is exported as IsReservedName. Each refusal exits 1 and names the reason. check-in: 3cc3cce1fe user: [email protected] tags: feat/cli-snapshot, main, trunk | |
| 22:55 |
fix(cli): print usage errors on stderr and pin their exit status 80
The documented status was right for the binary; go run turns it into 1. Usage text went to stdout, so an embedder reading stdout saw it on a failure. The doc now says which status a measurement under go run shows, and a test pins 80 for an unknown flag, a missing flag or argument and an unknown subcommand. check-in: 8fdb632783 user: [email protected] tags: feat/cli-snapshot, main, trunk | |
| 22:51 |
fix(db): convert Julian days to the millisecond SQLite gives
log --json printed most check-in times 1ms before their D card: db.julianToTime truncated where SQLite's date.c rounds with (sqlite3_int64)(r*86400000.0+0.5). fsltype.MillisFromJulianDay now does exactly that, JulianToTime and ScanTime use it, and ScanTime rounds the time.Time ncruces hands back to the millisecond as well. check-in: d17640749f user: [email protected] tags: feat/cli-snapshot, main, trunk | |