Support icon indicating copy to clipboard operation
Support copied to clipboard

`.gitignore` file is not used properly

Open powerpaul17 opened this issue 2 years ago • 3 comments

Gitfiend shows lots of unstaged files from a node_modules folder even if it is excluded in the .gitignore folder.

powerpaul17 avatar Jul 31 '23 10:07 powerpaul17

GitFiend doesn't have its own Git or gitignore implementation. It uses your system Git to determine what files are changed/visible. If you are seeing ignored files it's most likely you committed them. In changes view if you right-click a file, there's an option to remove it from Git tracking. In the case that a git status isn't showing the files and GitFiend is, then that would signify a bug, but I would need more info.

GitFiend avatar Jul 31 '23 21:07 GitFiend

Thanks for the quick reply. git status does not show the files as unstaged. But Gitfiend does. So I guess it's a bug somewhere.

How can I provide more information? What do you need?

powerpaul17 avatar Aug 01 '23 07:08 powerpaul17

GitFiend runs this command first to check for changes: git status --porcelain -uall -z. Does this print what you expect?

You could then try opening the devtool tools (menu -> view -> toggle developer tools) and check the network tab. There should be a request in there called "load_wip_patches". This request should return the same file names as the above git command. Do these match?

GitFiend avatar Aug 01 '23 07:08 GitFiend