diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-11-27 12:33:28 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-11-27 12:33:28 +0900 |
commit | 4886c778b44a0a4b9eb64392c58bf4ff20b4f587 (patch) | |
tree | 08814376b93eb76988551e85a5a30a5e460c8adc /gitattributes.html | |
parent | d71056015c147557a3bbf069107d9470c0579974 (diff) | |
download | git-htmldocs-4886c778b44a0a4b9eb64392c58bf4ff20b4f587.tar.gz |
Autogenerated HTML docs for v2.15.0-374-g5f995
Diffstat (limited to 'gitattributes.html')
-rw-r--r-- | gitattributes.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gitattributes.html b/gitattributes.html index 4be29c33a..328a8809d 100644 --- a/gitattributes.html +++ b/gitattributes.html @@ -1005,8 +1005,7 @@ containing CRLFs should be normalized.</td> <div class="listingblock">
<div class="content">
<pre><code>$ echo "* text=auto" >.gitattributes
-$ git read-tree --empty # Clean index, force re-scan of working directory
-$ git add .
+$ git add --renormalize .
$ git status # Show files that will be normalized
$ git commit -m "Introduce end-of-line normalization"</code></pre>
</div></div>
@@ -1099,6 +1098,8 @@ a non-zero status, is not an error but makes the filter a no-op passthru.</p></d <div class="paragraph"><p>You can declare that a filter turns a content that by itself is unusable
into a usable content by setting the filter.<driver>.required configuration
variable to <code>true</code>.</p></div>
+<div class="paragraph"><p>Note: Whenever the clean filter is changed, the repo should be renormalized:
+$ git add --renormalize .</p></div>
<div class="paragraph"><p>For example, in .gitattributes, you would assign the <code>filter</code>
attribute for paths.</p></div>
<div class="listingblock">
@@ -2077,7 +2078,7 @@ frotz unspecified</code></pre> <div id="footnotes"><hr /></div>
<div id="footer">
<div id="footer-text">
-Last updated 2017-09-19 14:00:46 JST
+Last updated 2017-11-27 12:32:50 JST
</div>
</div>
</body>
|