# git $Id$ smudge filter

2 messages from 2014-03-11 to 2014-03-11. Participants: shawn wilson, Junio C Hamano.
Thread: https://gitlist.dev/t/36126

## shawn wilson, 2014-03-11 21:21

Subject: git $Id$ smudge filter
Message-ID: <CAH_OBievh+7qe_warJD0_+O6V2=ES9Jjke1tAu4rL5BOKRHdTQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAH_OBievh%2B7qe_warJD0_%2BO6V2%3DES9Jjke1tAu4rL5BOKRHdTQ%40mail.gmail.com

```
Currently, I've got a perl script that modifies the Id line in a smudge filter:
[filter "ident-line"]
  smudge = /usr/local/bin/githook_ident-filter.pl %f

The problem I've noticed with smudge filters is that it leaves the
repo dirty. How do I fix this? I am basically trying to replicate the
behavior of CVS or SVN $Id$ line here.

```

## Junio C Hamano, 2014-03-11 21:54

Subject: Re: git $Id$ smudge filter
Message-ID: <xmqqbnxco0z1.fsf@gitster.dls.corp.google.com>
URL: https://gitlist.dev/e/xmqqbnxco0z1.fsf%40gitster.dls.corp.google.com
In-Reply-To: <CAH_OBievh+7qe_warJD0_+O6V2=ES9Jjke1tAu4rL5BOKRHdTQ@mail.gmail.com>

```
shawn wilson <ag4ve.us@gmail.com> writes:

> Currently, I've got a perl script that modifies the Id line in a smudge filter:
> [filter "ident-line"]
>   smudge = /usr/local/bin/githook_ident-filter.pl %f
>
> The problem I've noticed with smudge filters is that it leaves the
> repo dirty. How do I fix this? I am basically trying to replicate the
> behavior of CVS or SVN $Id$ line here.

It somewhat smells fishy to have only smudge filter defined without
a corresponding clean filter, doesn't it?

```
