diff options
author | Junio C Hamano <junio@kernel.org> | 2010-02-12 20:51:24 +0000 |
---|---|---|
committer | Junio C Hamano <junio@kernel.org> | 2010-02-12 20:51:24 +0000 |
commit | 1123f30049dc3e8a293e88e621cc52971dc415e7 (patch) | |
tree | 4f01be337dbce2509f6eca6a6b14763bbc153456 /git-archive.txt | |
parent | b2628b18098c5ac2facedf7b1808f37bd50fa9dc (diff) | |
download | git-htmldocs-1123f30049dc3e8a293e88e621cc52971dc415e7.tar.gz |
Autogenerated HTML docs for v1.7.0-rc2-34-g9b4c8
Diffstat (limited to 'git-archive.txt')
-rw-r--r-- | git-archive.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/git-archive.txt b/git-archive.txt index 799c8b64b..8d3e66626 100644 --- a/git-archive.txt +++ b/git-archive.txt @@ -112,6 +112,14 @@ export-subst:: expand several placeholders when adding this file to an archive. See linkgit:gitattributes[5] for details. +Note that attributes are by default taken from the `.gitattributes` files +in the tree that is being archived. If you want to tweak the way the +output is generated after the fact (e.g. you committed without adding an +appropriate export-ignore in its `.gitattributes`), adjust the checked out +`.gitattributes` file as necessary and use `--work-tree-attributes` +option. Alternatively you can keep necessary attributes that should apply +while archiving any tree in your `$GIT_DIR/info/attributes` file. + EXAMPLES -------- git archive --format=tar --prefix=junk/ HEAD | (cd /var/tmp/ && tar xf -):: |