aboutsummaryrefslogtreecommitdiff
path: root/pairwise-tests
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-30 13:43:25 -0400
committerCraig Jennings <c@cjennings.net>2026-06-30 13:43:25 -0400
commitf67e72430845236ab5ed4ca00ba13afe87eda53a (patch)
tree395c087693a99d5e2db93c8e0dfe42703bb59cbc /pairwise-tests
parent324a52b511b8c54ec0e4e706df7a1d4568447efc (diff)
downloadrulesets-f67e72430845236ab5ed4ca00ba13afe87eda53a.tar.gz
rulesets-f67e72430845236ab5ed4ca00ba13afe87eda53a.zip
feat(todo-cleanup): age the Resolved section out to a tracked archive
A project's in-file Resolved section grew without bound: --archive-done only moved closures from Open Work into Resolved, same file. .emacs.d's todo.org reached 768KB that way. So --archive-done now has a second step: a Resolved subtree closed longer ago than tc-archive-retain-days (default 7), or with no parseable CLOSED date, moves out to archive/task-archive.org beside the todo file. Only the last week of closures stays in the file. The step honors --check, and tc-archive-retain-days nil disables it. I added a guard the proposal lacked: the archive inherits the todo file's gitignore status. gitignore-mode projects gitignore todo.org, so without this the aging step would shed previously-private task history into a tracked archive, a leak on any public repo. When the todo file is gitignored and the archive isn't, the script adds the archive path to .gitignore before the first write. Track-mode projects leave both tracked. Covered by two tests in a temp git repo, one per branch.
Diffstat (limited to 'pairwise-tests')
0 files changed, 0 insertions, 0 deletions