From 7a6c15e8ff135fc6b22b09038454d007da9642f4 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Sat, 11 Aug 2018 22:25:39 +0300 Subject: Make get-related functions to take minimum supported version as an argument --- bdep/git.ixx | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'bdep/git.ixx') 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 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 (in), - forward (out), - forward (err), + return start_git (min_ver, + forward (in), forward (out), forward (err), "-C", repo, forward (args)...); } @@ -23,9 +25,13 @@ namespace bdep template inline optional - 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 (args)...); } -- cgit v1.1