hledger/hledger-lib/Hledger
Simon Michael 88f6c16dd5 fix:add,import: autocreate missing journal files again (but later) [#2514]
This restores the pre-1.50.3 behaviour of add and import, which once
again auto-create a missing file (specified by -f or LEDGER_FILE or
the builtin default path) rather than giving an error.
This fixes #2514 and refines the fix for [#2485].

There's also an improvement: they no longer create it unconditionally at the start;
they create lazily, when they have data to write.

Hledger.Read:
defaultExistingJournalPath
defaultExistingJournalPathSafely
readPossibleJournalFile

Hledger.Cli.Utils:
withPossibleJournal
2026-01-06 21:39:59 -10:00
..
Data imp:lib:valuation: optimize price lookup with pre-built indexes [#2511] 2026-01-02 17:05:24 -10:00
Read dev: cleanup 2025-12-16 00:18:28 -10:00
Reports fix:PeriodData: simplify, use Day keys [#2479] 2025-10-11 11:27:58 -10:00
Utils dev:Hledger.Utils.IO: clarify expandPath, expandHomePath 2025-12-31 00:28:05 -10:00
Write dev: switch all qualifed imports to ImportQualifiedPost style 2025-09-29 19:28:59 -10:00
Data.hs dev!: lib: Refactor splitSpan to return Maybe DayPartition. 2025-10-09 15:31:28 -10:00
Query.hs fix:lib:Hledger.Query: words'': Parse escaped quotes in quoted patterns 2025-12-26 12:09:49 -10:00
Read.hs fix:add,import: autocreate missing journal files again (but later) [#2514] 2026-01-06 21:39:59 -10:00
Reports.hs cln: tests: Remove test and tests, which are just aliases for testCase 2021-08-30 16:32:19 -10:00
Utils.hs dev!: lib: Refactor splitSpan to return Maybe DayPartition. 2025-10-09 15:31:28 -10:00