From: Junio C Hamano Date: Mon, 10 Sep 2007 08:11:27 +0000 (+0000) Subject: Autogenerated HTML docs for v1.5.3.1-40-g6972 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ef4c2d16afe780a60fec4d5dd73dfd05934c79ce;p=git.git Autogenerated HTML docs for v1.5.3.1-40-g6972 --- diff --git a/git-pack-objects.html b/git-pack-objects.html index c0db59d5b..7a41e2854 100644 --- a/git-pack-objects.html +++ b/git-pack-objects.html @@ -498,12 +498,8 @@ base-name generated pack. If not specified, pack compression level is determined first by pack.compression, then by core.compression, and defaults to -1, the zlib default, if neither is set. - Data copied from loose objects will be recompressed - if core.legacyheaders was true when they were created or if - the loose compression level (see core.loosecompression and - core.compression) is now a different value than the pack - compression level. Add --no-reuse-object if you want to force - a uniform compression level on all data no matter the source. + Add --no-reuse-object if you want to force a uniform compression + level on all data no matter the source.

@@ -554,7 +550,7 @@ base-name diff --git a/git-pack-objects.txt b/git-pack-objects.txt index 6f17cff24..f8a0be351 100644 --- a/git-pack-objects.txt +++ b/git-pack-objects.txt @@ -155,12 +155,8 @@ base-name:: generated pack. If not specified, pack compression level is determined first by pack.compression, then by core.compression, and defaults to -1, the zlib default, if neither is set. - Data copied from loose objects will be recompressed - if core.legacyheaders was true when they were created or if - the loose compression level (see core.loosecompression and - core.compression) is now a different value than the pack - compression level. Add --no-reuse-object if you want to force - a uniform compression level on all data no matter the source. + Add \--no-reuse-object if you want to force a uniform compression + level on all data no matter the source. --delta-base-offset:: A packed archive can express base object of a delta as 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 +

Creating an archive

+

export-subst

+

If the attribute export-subst 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 +git-archive(1) 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 --pretty=format: of git-log(1), +except that they need to be wrapped like this: $Format:PLACEHOLDERS$ +in the file. E.g. the string $Format:%H$ will be replaced by the +commit hash.

GIT

@@ -698,7 +709,7 @@ frotz unspecified
diff --git a/gitattributes.txt b/gitattributes.txt index 46f9d591a..d0e951ee6 100644 --- a/gitattributes.txt +++ b/gitattributes.txt @@ -421,6 +421,23 @@ frotz unspecified ---------------------------------------------------------------- +Creating an archive +~~~~~~~~~~~~~~~~~~~ + +`export-subst` +^^^^^^^^^^^^^^ + +If the attribute `export-subst` 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 +gitlink:git-archive[1] 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 `--pretty=format:` of gitlink:git-log[1], +except that they need to be wrapped like this: `$Format:PLACEHOLDERS$` +in the file. E.g. the string `$Format:%H$` will be replaced by the +commit hash. + + GIT --- Part of the gitlink:git[7] suite