From 1f490ec2c9d1e5c80697b370d82f0bb3530aa450 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 19 Apr 2018 22:42:10 +0300 Subject: Add support for comma-separated list of git reference filter --- bpkg/fetch.hxx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'bpkg/fetch.hxx') diff --git a/bpkg/fetch.hxx b/bpkg/fetch.hxx index 9530455..d05b8da 100644 --- a/bpkg/fetch.hxx +++ b/bpkg/fetch.hxx @@ -59,13 +59,19 @@ namespace bpkg const dir_path&); // Fetch a git repository in the specifid directory (previously created by - // git_init()) for the references obtained from the repository URL fragment - // returning commit ids these references resolve to. After fetching the - // repository working tree state is unspecified (see git_checkout ()). + // git_init() for the references obtained with the repository URL fragment + // filters, returning commit ids these references resolve to. After fetching + // the repository working tree state is unspecified (see git_checkout ()). // // Note that submodules are not fetched. // - strings + struct git_fragment + { + string commit; + string name; // User-friendly name (like 'branch foo', 'tag bar', ...). + }; + + vector git_fetch (const common_options&, const repository_location&, const dir_path&); -- cgit v1.1