{"thread":{"id":"36126","subject":"git $Id$ smudge filter","startedAt":"2014-03-11T21:21:51Z","lastAt":"2014-03-11T21:54:26Z","messageCount":2,"participants":["shawn wilson","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"236540","messageId":"CAH_OBievh+7qe_warJD0_+O6V2=ES9Jjke1tAu4rL5BOKRHdTQ@mail.gmail.com","threadId":"36126","inReplyTo":null,"subject":"git $Id$ smudge filter","fromName":"shawn wilson","fromEmail":"ag4ve.us@gmail.com","sentAt":"2014-03-11T21:21:51Z","receivedAt":"2014-03-11T21:21:51Z","isPatch":false,"sender":{"key":"ag4ve.us@gmail.com","avatar":null},"body":"Currently, I've got a perl script that modifies the Id line in a smudge filter:\n[filter \"ident-line\"]\n  smudge = /usr/local/bin/githook_ident-filter.pl %f\n\nThe problem I've noticed with smudge filters is that it leaves the\nrepo dirty. How do I fix this? I am basically trying to replicate the\nbehavior of CVS or SVN $Id$ line here.\n"},{"id":"236543","messageId":"xmqqbnxco0z1.fsf@gitster.dls.corp.google.com","threadId":"36126","inReplyTo":"CAH_OBievh+7qe_warJD0_+O6V2=ES9Jjke1tAu4rL5BOKRHdTQ@mail.gmail.com","subject":"Re: git $Id$ smudge filter","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2014-03-11T21:54:26Z","receivedAt":"2014-03-11T21:54:26Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"shawn wilson <ag4ve.us@gmail.com> writes:\n\n> Currently, I've got a perl script that modifies the Id line in a smudge filter:\n> [filter \"ident-line\"]\n>   smudge = /usr/local/bin/githook_ident-filter.pl %f\n>\n> The problem I've noticed with smudge filters is that it leaves the\n> repo dirty. How do I fix this? I am basically trying to replicate the\n> behavior of CVS or SVN $Id$ line here.\n\nIt somewhat smells fishy to have only smudge filter defined without\na corresponding clean filter, doesn't it?\n"}]}