Thread (9 messages) flat view 9 messages, 6 authors, 2016-08-11

Re: Diffs from CVS keyword expansion

From: Uwe Kleine-Koenig <hidden>
Date: 2016-08-11 20:40:28

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help