rockylhc
rockylhc

Reputation: 31

git apply -v, does it return anything when it has been patched successfully?

I'm trying to patch a module for my project, so I just followed what everyone suggested, download the patch to the particular module folder, do the git apply -v xxx.patch to the contributed module, but it didn't return anything once I do that, is that normal? Or it will return something like patches successfully?

Upvotes: 1

Views: 219

Answers (2)

rockylhc
rockylhc

Reputation: 31

Answer for my own question, for some reason, patch -p1 < xxx.patch works for me. Stated at the footnotes #2 of http://drupal.org/node/1054616 After that input git diff HEAD^ | mate, Hooray! Thanks @Jan for helping out though.

Upvotes: 1

Jan
Jan

Reputation: 11726

Check the return code. If it's 0 then it's successful.

git apply -v some.patch
echo $?

The man page doesn't specify what the actual output for a successful action should be.

Upvotes: 2

Related Questions