From: Uwe Kleine-Koenig Date: Tue, 05 Dec 2006 12:14:43 GMT Subject: Re: Diffs from CVS keyword expansion Message-ID: <20061205121443.GB2428@cepheus> In-Reply-To: <9e4733910611301956l6f64b01ftee46971a18e3467b@mail.gmail.com> Hello Jon, Jon Smirl wrote: > Anyone have a nice script for suppressing diffs caused by CVS keyword > expansion when someone checked the kernel sources into CVS? I have a little script (called rmcvsid) in my private path, that just wraps a Perl oneliner: #! /bin/sh exec perl -i -p -e 's/\$(Id|Revision):.*?\$/\$$1: \$/' "$@"; This edits inplace all cvs keywords to be not expanded. If you call it for all files *before* you throw them into git, you don't need to suppress the diffs, because there are none. You may have to add Source, Date and maybe others. HTH Uwe -- Uwe Kleine-Koenig