Re: Error converting from 1.4.4.1 to 1.5.0?

From: Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
Date: 2007-02-15 19:40:59
Bill Lear wrote:
> WAAAAAIAMINIT ... I think I see it:
> 
> % perl -pi -e 's/.*\$Id.*//sx' $(xgrep -l '[$]Id')
> 
> Could I have corrupted the pack file?  I'll bet $50 I did:
> 
> % [yet another clone]
> % xgrep -l '[$]Id'
> ./.git/objects/pack/pack-23d1a9af78b4b78d1f3750cf70f83cb91a20ba64.pack
> [...]
> 
> %!@#$&$%(@@@!!!
I suffered from something like that, too.  Since then I have a script
"ufind".  It's a wrapper around find that ignores CVS, Subversion, Git
and hg metadata.  Then "my" command would be:

	$ ufind -type f -print0 | xargs -0 -r grep -lZ '[$]Id' | xargs -r perl -p -i -e 's/.../'


Where ... is something more restrictive that your .*\$Id.*

For the interessted the script is attached.

-- 
Uwe Kleine-König

cat /*dev/null; echo 'Hello World!';
cat > /dev/null <<*/ 
() { } int main() { printf("Hello World!\n");}
/* */

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Received on Thu Feb 15 19:41:42 2007

This archive was generated by hypermail 2.1.8 : 2007-02-15 19:43:38 EST