grunt-git icon indicating copy to clipboard operation
grunt-git copied to clipboard

-C option

Open matiasdecarli opened this issue 10 years ago • 6 comments

Hi guys! I've forked the task and added the -C option in order to make this work properly in my build process. I would like to know if this is something that you would like to include on your version. In this case, I can finish it and send a pull request.

Cheers!

matiasdecarli avatar Jun 30 '14 03:06 matiasdecarli

Which task are you referring to? What does -C do?

rubenv avatar Jun 30 '14 07:06 rubenv

Sorry about the delay. Currently im implementing the -C in the push & commit tasks, but it could be added to a couple more tasks.

The idea of the -C is to excecute the task in another directory rather than the current one. A good example would be "git -C package push origin master ", pushing the repo thats inside "package" folder

matiasdecarli avatar Jul 04 '14 02:07 matiasdecarli

How does this relate to the grunt cwd option?

rubenv avatar Jul 04 '14 07:07 rubenv

I guess they output the same thing

matiasdecarli avatar Jul 18 '14 14:07 matiasdecarli

It is true that they do the same thing. However, I am in support of merging this, as the -C option more closely resembles the git CLI API, as per #44.

dylancwood avatar Jul 18 '14 14:07 dylancwood

However, I am in support of merging this, as the -C option more closely resembles the git CLI API, as per #44.

:+1:

rubenv avatar Jul 18 '14 14:07 rubenv