Skip to content

Commit 17d553b

Browse files
author
Markus
committed
Chapter 7 had the smudge and clean filter mixed up; swapped them in the text.
1 parent 9a19989 commit 17d553b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

en/07-customizing-git/01-chapter7.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ The next time you check out this file, Git injects the SHA of the blob:
389389

390390
However, that result is of limited use. If you’ve used keyword substitution in CVS or Subversion, you can include a datestamp — the SHA isn’t all that helpful, because it’s fairly random and you can’t tell if one SHA is older or newer than another.
391391

392-
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 committed ("clean", see Figure 7-2) and just before they’re checked out ("smudge", see Figure 7-3). These filters can be set to do all sorts of fun things.
392+
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). These filters can be set to do all sorts of fun things.
393393

394394
Insert 18333fig0702.png
395395
Figure 7-2. The “smudge” filter is run on checkout.

0 commit comments

Comments
 (0)