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.hxx | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) (limited to 'bdep/git.hxx') diff --git a/bdep/git.hxx b/bdep/git.hxx index ca49622..6b112c8 100644 --- a/bdep/git.hxx +++ b/bdep/git.hxx @@ -14,31 +14,46 @@ namespace bdep { using butl::git_repository; + // All functions that start git process take the minimum supported git + // version as an argument. + // + // Start git process. + // template process - start_git (I&& in, O&& out, E&& err, A&&... args); + start_git (const standard_version&, I&& in, O&& out, E&& err, A&&... args); template process - start_git (const dir_path& repo, I&& in, O&& out, E&& err, A&&... args); + start_git (const standard_version&, + const dir_path& repo, + I&& in, O&& out, E&& err, + A&&... args); + // Wait git process to terminate. + // void finish_git (process& pr, bool io_read = false); + // Run git process. + // template void - run_git (const dir_path& repo, A&&... args); + run_git (const standard_version&, const dir_path& repo, A&&... args); // Return the first line of the git output. If ignore_error is true, then // suppress stderr, ignore (normal) error exit status, and return nullopt. // template optional - git_line (bool ignore_error, A&&... args); + git_line (const standard_version&, bool ignore_error, A&&... args); template optional - git_line (const dir_path& repo, bool ignore_error, A&&... args); + git_line (const standard_version&, + const dir_path& repo, + bool ignore_error, + A&&... args); // Similar to the above but takes the already started git process with a // redirected output pipe. -- cgit v1.1