handle read-only operations #16

Merged
seb merged 2 commits from read-only-ops into main 2025-07-11 10:11:44 -06:00

2 commits

Author SHA1 Message Date
ce36626b7a ent: handle issue database source & worktrees better
This makes each command in `handle_command()` handle its own issues
database.  The commands that only need read-only access to the issues
make a detached worktree, while the commands that need read-write access
make a normal worktree with the `entomologist-data` branch checked out.

This lets us run any number of read-only operations (like `ent list`,
`ent show`, etc), even when a long-lived read-write operation (like
`ent new` or `ent edit`) is running.

Fixes `ent 317ea8ccac1d414cde55771321bdec30`.
2025-07-10 13:04:55 -06:00
f8d35e13ff add git::Worktree::new_detached()
This makes a detached worktree, useful for read-only operations on the
issues database branch.
2025-07-10 12:39:03 -06:00