graphify icon indicating copy to clipboard operation
graphify copied to clipboard

.graphifyignore does not support .gitignore syntax. ie: negation patterns (!) not supported

Open kylebehse opened this issue 7 months ago • 2 comments

Graphify does not support negation patterns (!).

It would be great if we could just ignore everything except the one directory that we want to parse. This would future proof our workspace from contaminating our graph if we forget to keep the ignore file up to date.

Example .graphifyignore file:

# Ignore everything
*

# Allow the directory itself
!src/

# Allow everything inside that directory
!src/**

The above is not currently supported, even though it is correct .gitignore syntax.

kylebehse avatar May 03 '26 05:05 kylebehse

Fixed: when negation patterns (!) exist in .graphifyignore, directory pruning is skipped so negated files inside ignored directories can still be reached. Pattern like * + !src/** now works correctly.

safishamsi avatar May 03 '26 12:05 safishamsi

Amazing! Well done, @safishamsi !!

kylebehse avatar May 09 '26 23:05 kylebehse