aboutsummaryrefslogtreecommitdiff
path: root/bpkg/fetch.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-04-19 22:42:10 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-04-20 15:56:25 +0300
commit1f490ec2c9d1e5c80697b370d82f0bb3530aa450 (patch)
treed0a883b0d2490b1a1276c02bd1fc4b393eb86c33 /bpkg/fetch.hxx
parentf2f08e0758243a820fe47128ffabaa474c0e86e7 (diff)
Add support for comma-separated list of git reference filter
Diffstat (limited to 'bpkg/fetch.hxx')
-rw-r--r--bpkg/fetch.hxx14
1 files changed, 10 insertions, 4 deletions
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_fragment>
git_fetch (const common_options&,
const repository_location&,
const dir_path&);