Commit 4817815
fix: self-ignore the .nightcrow session directory
The session writer creates `<repo>/.nightcrow/session.json` inside the
user's working tree. Without explicit setup the file appears as an
untracked path in both `git status` and nightcrow's own status view,
which is noise the user has to suppress per-repo by editing their
`.gitignore`. Have `save_session` drop a `.nightcrow/.gitignore`
containing `*` on first write so the directory ignores itself; an
existing file is left alone so a user-customised ignore pattern is
never clobbered.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent bdcafe4 commit 4817815
1 file changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
51 | 60 | | |
52 | 61 | | |
53 | 62 | | |
| |||
0 commit comments