How to use -relative with git format-patch?

When I use git diff --relative HEAD^..HEAD , I get a good result for the patch, which I cross out the path outside the directory in which it is located.

I am starting to use git format-patch , and I would also like to use --relative , but I don't see any options for this. How do I get the same effect?

thank

+6
git version-control
Apr 30 '13 at 21:13
source share
1 answer

git help format-patch shows

  git format-patch [-k] [(-o|--output-directory) <dir> | --stdout] ... **[<common diff options>]** 

So just git format-patch --relative .

+6
Apr 30 '13 at 21:39
source share



All Articles