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 |
||
|---|---|---|
| .. | ||
| Data | ||
| Read | ||
| Reports | ||
| Utils | ||
| Write | ||
| Data.hs | ||
| Query.hs | ||
| Read.hs | ||
| Reports.hs | ||
| Utils.hs | ||