diff options
author | René Scharfe <l.s.r@web.de> | 2020-09-20 00:23:42 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-09-20 01:56:06 +0300 |
commit | 2947a7930d2864cfbc3f9815959cd6539e2ea9ad (patch) | |
tree | f7c0ead6a43ad6eb6b9e167020eb561370043935 /Documentation | |
parent | 200589abcb4d7f107ed9da85e43b9a7268016c23 (diff) |
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.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Documentation/git-archive.txt b/Documentation/git-archive.txt index cfa1e4ebe4..9f8172828d 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>>). |