aboutsummaryrefslogtreecommitdiff
path: root/bdep/git.ixx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-08-11 22:25:39 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-08-11 22:25:39 +0300
commit7a6c15e8ff135fc6b22b09038454d007da9642f4 (patch)
treef7a4454c2e1cd0c528e92c5b0f9017263d48cba9 /bdep/git.ixx
parent4a9790b9d8262f44bd42bfe9af0860873725b32b (diff)
Make get-related functions to take minimum supported version as an argument
Diffstat (limited to 'bdep/git.ixx')
-rw-r--r--bdep/git.ixx18
1 files changed, 12 insertions, 6 deletions
diff --git a/bdep/git.ixx b/bdep/git.ixx
index 9369564..0e3ee9f 100644
--- a/bdep/git.ixx
+++ b/bdep/git.ixx
@@ -6,11 +6,13 @@ namespace bdep
{
template <typename I, typename O, typename E, typename... A>
inline process
- start_git (const dir_path& repo, I&& in, O&& out, E&& err, A&&... args)
+ start_git (const standard_version& min_ver,
+ const dir_path& repo,
+ I&& in, O&& out, E&& err,
+ A&&... args)
{
- return start_git (forward<I> (in),
- forward<O> (out),
- forward<E> (err),
+ return start_git (min_ver,
+ forward<I> (in), forward<O> (out), forward<E> (err),
"-C", repo,
forward<A> (args)...);
}
@@ -23,9 +25,13 @@ namespace bdep
template <typename... A>
inline optional<string>
- git_line (const dir_path& repo, bool ie, A&&... args)
+ git_line (const standard_version& min_ver,
+ const dir_path& repo,
+ bool ie,
+ A&&... args)
{
- return git_line (ie,
+ return git_line (min_ver,
+ ie,
"-C", repo,
forward<A> (args)...);
}