rubenv / grunt-git

Git commands for grunt.
MIT License
227 stars 83 forks source link

Clarification on the force option for the gitadd task #146

Open tiggeymone opened 1 year ago

tiggeymone commented 1 year ago

Hello grunt-git developers,

I've been using the grunt-git plugin, and I would like to get some clarification on the force option for the gitadd task. I've read the documentation, but I'm still not entirely sure about its behavior.

From my understanding, the force option allows the addition of changes to files in the index even if the file already has a modification present in the index. This means that new changes to the file will be added to the index along with previous changes, even though they might be ignored otherwise. Is this the correct understanding of the force option?

Additionally, does the force option also allow adding files that are specified in the .gitignore file, or does it only affect files that already have staged changes in the index?

I would appreciate any insights or clarification on this matter. Thank you for your time and for developing this useful plugin.