Open CalinR opened 5 years ago
AFAIK gitignore is only used for worktree.Status()
. You'll have to do the filtering yourself. As an example the code that does the filtering for status is here:
It would be nice to have this functionality baked in Add
and AddGlob
. Related to #1201
I'm facing the same problem, using this lib to make changes on multiple git repo and it sometimes using the gitignore file in the root and sometimes not and pushing 500+ extra files, which is really annoying.
Hi @jfontan , any good workaround for this?
Hey all, I've been trying to get a gitignore to work with this package and I cant seem to get it to work. The gitignore is in the root of the repository.
I'm doing the following. Am I missing something?
I've debugged the worktree status file, and
diffStagingWithWorktree
seems to be ignoring files properly when I run thew.Add
method. But when I run commit, it commits all files that should have been ignored.Any help would be greatly appreciated! Thanks in advance!