Skip to content

Resolve relative paths in rm, pause and resume like add does - #12

Merged
Will-Howard merged 1 commit into
mainfrom
rm-relative-path
Jul 29, 2026
Merged

Resolve relative paths in rm, pause and resume like add does#12
Will-Howard merged 1 commit into
mainfrom
rm-relative-path

Conversation

@Will-Howard

Copy link
Copy Markdown
Owner

Fixes #11

Config.matches only compared the needle as a tilde path, a folder name or
the stored path, so `gitwatchd rm .` inside a watched repo matched
nothing while `add .` had stored the expanded path. Lookup now resolves a
relative needle against the shell's working directory, through the same
helper add uses; folder-name matching is unchanged.

Fixes #11

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Will-Howard
Will-Howard merged commit b9ff4aa into main Jul 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gitwatchd rm . should expand the relative path

1 participant