threads / discuss / 36126

git $Id$ smudge filter

Subject: git $Id$ smudge filter

## tl;dr

2 messages between Mar 11, 2014 and Mar 11, 2014.

replies: 1people: 2as markdown or json

shawn wilson· Mar 11, 2014, 21:21 UTC · lore
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· Mar 11, 2014, 21:54 UTC · re: shawn wilson · lore

Re: git $Id$ smudge filter

shawn wilson <ag4ve.us@gmail.com> writes:
Show 7 quoted lines
> 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?

← back to recent threads