Re: [translations] comparing multiple files |
[ Thread Index |
Date Index
| More lilynet.net/translations Archives
]
- To: Federico Bruni <fedelogy@xxxxxxxxx>
- Subject: Re: [translations] comparing multiple files
- From: Francisco Vila <paconet.org@xxxxxxxxx>
- Date: Mon, 18 Jul 2011 09:46:01 +0200
- Cc: Translations list at lilynet <translations@xxxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=jMDh/N/Ka0/CWm8aloqvGDNhuLl/zQE+n7v6SKO9frc=; b=En9+yYXcQ6FYYDPteLIrkF4Zt74aj8II8hHZpVZSllXmy7r5L3rB+pdOE3HLGKiUy9 fpRYgka3twJIlfpp03tXWCDwz35312KqfnoCiwLIOp7jU3ck3Ucs5BdPu5Fw47wp2VaQ CrXqPqVXaPOjOhsJP8f1xYj+G3WY1btBxhEhE=
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