Re: [translations] comparing multiple files

[ Thread Index | Date Index | More lilynet.net/translations Archives ]


2011/7/18 Federico Bruni <fedelogy@xxxxxxxxx>:
> Hi,
>
> I've received the revision of the texidoc/ files from the italian
> proofreader and I'd like to automatically generate the .diff file for
> each file (in order to see his changes).
>
> IIUC, diff can only compare two files or the list of files in two
> directories.
> Should I use some bash script?
>
> Any help appreciated, thanks!

I'd use git itself for that. If your original files are clean in your
tree/index, why not save new files in place and do 'git diff' ? this
will show you all the diffs against originals.  Then

  'git add' new files,
  'git commit' and
  'git format-patch HEAD^'

Once your patch is generated, you can safely reset to HEAD^ to recover
originals again.

-- 
Francisco Vila. Badajoz (Spain)
www.paconet.org , www.csmbadajoz.com



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/