Skip to content

Commit

Permalink
Documentation/git-archive.txt: Note attributes
Browse files Browse the repository at this point in the history
Signed-off-by: Roy Lee <roylee17@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Roy Lee authored and Junio C Hamano committed Mar 4, 2009
1 parent 1d035f8 commit 8d1b9d2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Documentation/git-archive.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,18 @@ tar.umask::
archiving user's umask will be used instead. See umask(2) for
details.

ATTRIBUTES
----------

export-ignore::
Files and directories with the attribute export-ignore won't be
added to archive files. See linkgit:gitattributes[5] for details.

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.
See linkgit:gitattributes[5] for details.

EXAMPLES
--------
git archive --format=tar --prefix=junk/ HEAD | (cd /var/tmp/ && tar xf -)::
Expand All @@ -110,6 +122,11 @@ git archive --format=zip --prefix=git-docs/ HEAD:Documentation/ > git-1.4.0-docs
Put everything in the current head's Documentation/ directory
into 'git-1.4.0-docs.zip', with the prefix 'git-docs/'.


SEE ALSO
--------
linkgit:gitattributes[5]

Author
------
Written by Franck Bui-Huu and Rene Scharfe.
Expand Down

0 comments on commit 8d1b9d2

Please sign in to comment.