I am trying to use JGit to add all files to the index (stage area).
By doing git.add().addFilepattern(".").call()
I get to add modified and new ones. But not deleted ones.
How to add all deleted ones as well?
I tried git.add().addFilepattern("-u")
but it does not work.
Related question (about adding specific deleted files, not all deleted files):
How can I use JGit to add deleted files to the index?