aboutsummaryrefslogtreecommitdiff
path: root/bdep/git.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-08-24 13:33:01 +0200
committerKaren Arutyunov <karen@codesynthesis.com>2018-08-25 13:38:41 +0300
commitfe6aa3aa87bdff77ca667e012a9d1cc34f1fb8ea (patch)
treeaf89684406dbb6b6f13bd74e9b09cf76eb6d6ebd /bdep/git.hxx
parent5f85dd75c096b57a085737a8164099cb1ef19181 (diff)
Implement bdep-ci command
Diffstat (limited to 'bdep/git.hxx')
-rw-r--r--bdep/git.hxx13
1 files changed, 12 insertions, 1 deletions
diff --git a/bdep/git.hxx b/bdep/git.hxx
index fcc9513..8ef9397 100644
--- a/bdep/git.hxx
+++ b/bdep/git.hxx
@@ -30,7 +30,7 @@ namespace bdep
I&& in, O&& out, E&& err,
A&&... args);
- // Wait git process to terminate.
+ // Wait for git process to terminate.
//
void
finish_git (process& pr, bool io_read = false);
@@ -60,6 +60,17 @@ namespace bdep
//
optional<string>
git_line (process&& pr, fdpipe&& pipe, bool ignore_error);
+
+ // Try to derive a remote HTTPS repository URL from the optionally specified
+ // custom git config value falling back to remote.origin.build2Url and then
+ // remote.origin.url. Issue diagnostics (including a suggestion to use
+ // option opt, if specified) and fail if unable to.
+ //
+ url
+ git_remote_url (const dir_path& repo,
+ const char* opt = nullptr,
+ const char* what = "remote repository URL",
+ const char* cfg = nullptr);
}
#include <bdep/git.ixx>