From db4a9915b25ab682762eb73d65aab44e6bddcc1f Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 11 Jan 2023 21:39:15 +0300 Subject: Add --git-capabilities common option --- bpkg/common.cli | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'bpkg/common.cli') diff --git a/bpkg/common.cli b/bpkg/common.cli index d870a8d..0d97631 100644 --- a/bpkg/common.cli +++ b/bpkg/common.cli @@ -381,6 +381,24 @@ namespace bpkg "Assume the answer to all authentication prompts is \cb{no}." } + git_capabilities_map --git-capabilities + { + "=", + "Protocol capabilities () for a \cb{git} repository URL prefix + (). Valid values for the capabilities are \cb{dumb} (no shallow + clone support), \cb{smart} (support for shallow clone, but not for + fetching unadvertised commits), \cb{unadv} (support for shallow clone + and for fetching unadvertised commits). For example: + + \ + bpkg build https://example.org/foo.git#master \ + --git-capabilities https://example.org=smart + \ + + See \l{bpkg-repository-types(1)} for details on the \cb{git} protocol + capabilities." + } + string --pager // String to allow empty value. { "", -- cgit v1.1