From: Michael J Gruber Date: Fri, 13 Mar 2009 10:46:57 GMT Subject: Re: Transparently encrypt repository contents with GPG Message-ID: <49BA39A1.9090203@drmicha.warpmail.net> In-Reply-To: Sverre Rabbelier venit, vidit, dixit 12.03.2009 22:34: > Heya, > > On Thu, Mar 12, 2009 at 22:19, Matthias Nothhaft > > What I need is a way to > automatically modify each file >> >> a) before it is written in the repository >> b) after it is read from the repository > > Have a look at smudging, you might not need to touch the git source > code at all ;). > And people asked me not to be cryptic... even though the OP explicitely asked for encryption, of course ;) "git help attributes" may help: look for filter and set attributes and config (filter.$name.{clean,smudge}) accordingly. smudge should probably decrypt, clean should encrypt. BTW: Why not use an encrypted file system? That way your work tree would be encrypted also. Cheers, Michael