summaryrefslogtreecommitdiffstats
path: root/gitattributes.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2007-09-10 08:11:27 +0000
committerJunio C Hamano <junio@hera.kernel.org>2007-09-10 08:11:27 +0000
commitef4c2d16afe780a60fec4d5dd73dfd05934c79ce (patch)
treeec1302d8812ae6ced5f5f5e939975508d7dcf204 /gitattributes.html
parent250f03e4da02e3baac97034efeb8d122e0d6b207 (diff)
downloadgit-htmldocs-ef4c2d16afe780a60fec4d5dd73dfd05934c79ce.tar.gz
Autogenerated HTML docs for v1.5.3.1-40-g6972
Diffstat (limited to 'gitattributes.html')
-rw-r--r--gitattributes.html13
1 files changed, 12 insertions, 1 deletions
diff --git a/gitattributes.html b/gitattributes.html
index 35a4820ea..5426ddf13 100644
--- a/gitattributes.html
+++ b/gitattributes.html
@@ -691,6 +691,17 @@ baz set to false
merge set to string value "filfre"
frotz unspecified</tt></pre>
</div></div>
+<h3>Creating an archive</h3>
+<h4><tt>export-subst</tt></h4>
+<p>If the attribute <tt>export-subst</tt> is set for a file then git will expand
+several placeholders when adding this file to an archive. The
+expansion depends on the availability of a commit ID, i.e. if
+<a href="git-archive.html">git-archive(1)</a> has been given a tree instead of a commit or a
+tag then no replacement will be done. The placeholders are the same
+as those for the option <tt>--pretty=format:</tt> of <a href="git-log.html">git-log(1)</a>,
+except that they need to be wrapped like this: <tt>$Format:PLACEHOLDERS$</tt>
+in the file. E.g. the string <tt>$Format:%H$</tt> will be replaced by the
+commit hash.</p>
</div>
<h2>GIT</h2>
<div class="sectionbody">
@@ -698,7 +709,7 @@ frotz unspecified</tt></pre>
</div>
<div id="footer">
<div id="footer-text">
-Last updated 25-Aug-2007 03:53:15 UTC
+Last updated 10-Sep-2007 08:10:47 UTC
</div>
</div>
</body>