( XYBeR | 2010. 11. 22., h – 12:58 )

It turns out that you can write your own filters for doing substitutions in files on commit/checkout. These are the “clean” and “smudge” filters. In the .gitattributes file, you can set a filter for particular paths and then set up scripts that will process files just before they’re checked out (“smudge”, see Figure 7-2) and just before they’re committed (“clean”, see Figure 7-3).

nem pont erre találták ki, de akár itt is jó lehet. a lényeg, hogy lokálban lehet matatni checkout/commit előtt. csak szépen át kell nyomni valami titkosításos dolgon a forrásokat ennek a segítségével. egy próbát szerintem megér.

példát nem tudok, mert még sosem csináltam, bocs. csak beugrott, hogy olvastam ilyenről.