aboutsummaryrefslogtreecommitdiff
path: root/bpkg/fetch.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-02-19 14:26:02 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-02-19 14:27:24 +0300
commit3d4838d3706de2ba0045dc9f99a3dc96398def64 (patch)
treeece29423c4ece1139169a8b952914471593fe577 /bpkg/fetch.hxx
parentd3ef22615ba7d37be18c31b2fdd1bdb6be164939 (diff)
Parse repositories and packages files for git repositories
Diffstat (limited to 'bpkg/fetch.hxx')
-rw-r--r--bpkg/fetch.hxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/bpkg/fetch.hxx b/bpkg/fetch.hxx
index f243e09..659e019 100644
--- a/bpkg/fetch.hxx
+++ b/bpkg/fetch.hxx
@@ -49,16 +49,18 @@ namespace bpkg
// Repository type git (fetch-git.cxx).
//
- // Clone git repository into destdir/<fragment>/.
+ // Clone git repository into destdir/<name>/. Return the cloned repository
+ // directory name that was deduced from the repository URL fragment.
//
- void
+ dir_path
git_clone (const common_options&,
const repository_location&,
const dir_path& destdir);
- // Fetch git repository in destdir/<fragment>/.
+ // Fetch git repository in destdir/<name>/. Return the fetched repository
+ // directory name that was deduced from the repository URL fragment.
//
- void
+ dir_path
git_fetch (const common_options&,
const repository_location&,
const dir_path& destdir);