rubenv / grunt-git

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

Add option to gitadd to allow for git resolvable pathspecs #108

Open gabema opened 9 years ago

gabema commented 9 years ago

I need the ability to pass fileglob pathspecs (http://git-scm.com/docs/git-add - see the options / pathspec section) directly to the git add command without grunt attempting to resolve it to an actual explicit list of files via grunt.task.files.src.

This is particularly needed/useful for platforms (i.e. windows) that are constrained by a max command line limit of 8k characters. Providing the ability to specify pathspecs directly to the git add command is extremely valuable/useful to fix scenarios in which many files are attempting to be added in a single git add command or even when a few of the files attempting to be added have a long path.