How to create a Patch for Rietveld by git/patch/*?

2019-08-03 01:47发布

问题:

I have a file where I added a print -statement such that

 print "hello"         // this is a change
 ----- file -------

I have the change in my Git's commit tree.

I would like to have a patch which I can use for Rietveld.

I get the following when I have the changed file at Data, while the unchanged file at Base.

alt text http://files.getdropbox.com/u/175564/codepreview-patch.png

How can you make a patch which I can give for Rietveld?

回答1:

At the current state Rietveld r530 online patch parser understands only SVN based patches - no Mercurial or Git format. That's why it is advised to use upload.py utility for sending patches.