aboutsummaryrefslogtreecommitdiff
path: root/bdep/git.ixx
diff options
context:
space:
mode:
Diffstat (limited to 'bdep/git.ixx')
-rw-r--r--bdep/git.ixx19
1 files changed, 19 insertions, 0 deletions
diff --git a/bdep/git.ixx b/bdep/git.ixx
index dbc43cb..f06a000 100644
--- a/bdep/git.ixx
+++ b/bdep/git.ixx
@@ -35,4 +35,23 @@ namespace bdep
"-C", repo,
forward<A> (args)...);
}
+
+ template <typename... A>
+ inline optional<string>
+ git_string (const semantic_version& min_ver,
+ const dir_path& repo,
+ bool ie,
+ A&&... args)
+ {
+ return git_string (min_ver,
+ ie,
+ "-C", repo,
+ forward<A> (args)...);
+ }
+
+ inline optional<string>
+ git_string (process&& pr, fdpipe&& pipe, bool ignore_error)
+ {
+ return git_line (move (pr), move (pipe), ignore_error, '\0' /* delim */);
+ }
}