I recently stumbled upon Git's smudge and clean filter concept in this blog entry: Link. This a very useful concept and could immediately apply it in several use cases.
One thing that bothers me, however, is that you can't seem to share the filter definitions automatically. As far as I understood it, you define the filters in your local .git/config file, thereby also naming them, and then reference that filter for various filetypes in your .gitattributes file.
Now, while you can push the .gitattributes to the remote repository, you can't do the same for the .git/config file. I searched quite a lot, but I did not find an alternative way to define the filters in a way that everybody can use it, i.e. at least not using git tools alone (you could of course write a small script that the user has to run first, but this is rather cumbersome).
Does anybody know of a way to do this?