summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2020-09-19 21:23:42 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-09-19 22:56:06 (GMT)
commit2947a7930d2864cfbc3f9815959cd6539e2ea9ad (patch)
treef7c0ead6a43ad6eb6b9e167020eb561370043935 /Documentation
parent200589abcb4d7f107ed9da85e43b9a7268016c23 (diff)
downloadgit-2947a7930d2864cfbc3f9815959cd6539e2ea9ad.zip
git-2947a7930d2864cfbc3f9815959cd6539e2ea9ad.tar.gz
git-2947a7930d2864cfbc3f9815959cd6539e2ea9ad.tar.bz2
archive: add --add-file
Allow users to append non-tracked files. This simplifies the generation of source packages with a few extra files, e.g. containing version information. They get the same access times and user information as tracked files. Signed-off-by: René Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-archive.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/git-archive.txt b/Documentation/git-archive.txt
index cfa1e4e..9f81728 100644
--- a/Documentation/git-archive.txt
+++ b/Documentation/git-archive.txt
@@ -55,6 +55,12 @@ OPTIONS
--output=<file>::
Write the archive to <file> instead of stdout.
+--add-file=<file>::
+ Add a non-tracked file to the archive. Can be repeated to add
+ multiple files. The path of the file in the archive is built
+ by concatenating the value for `--prefix` (if any) and the
+ basename of <file>.
+
--worktree-attributes::
Look for attributes in .gitattributes files in the working tree
as well (see <<ATTRIBUTES>>).