]> git.ipfire.org Git - thirdparty/git.git/commit
archive: document that --add-virtual-file takes full path
authorJunio C Hamano <gitster@pobox.com>
Fri, 14 Jun 2024 18:40:57 +0000 (11:40 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 26 Jun 2024 19:56:45 +0000 (12:56 -0700)
commit72c282098d27ee7252a431fc93dfe0f271242ed8
treeceb269a428d415558f12f5e19d78e85f089dddca
parent564d0252ca632e0264ed670534a51d18a689ef5d
archive: document that --add-virtual-file takes full path

Tom Scogland noticed that `--add-virtual-file` option uses the path
specified as its value as-is, without prepending any value given to
the `--prefix` option like `--add-file` does.

The behaviour has always been that way since the option was
introduced, but the documentation has always been wrong and said
that it would use the value of `--prefix` just like `--add-file`
does.

We could modify the behaviour to make it literally work like the
documentation said, but it would break existing scripts the users
use.

Noticed-by: Tom Scogland <scogland1@llnl.gov>
Acked-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-archive.txt