From 18bb25efa41dab4a3f7619040e2067da3533decd Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 24 Jan 2019 21:41:48 +0300 Subject: Add support for --no-progress option --- bdep/git.hxx | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'bdep/git.hxx') diff --git a/bdep/git.hxx b/bdep/git.hxx index 9f968dd..e699947 100644 --- a/bdep/git.hxx +++ b/bdep/git.hxx @@ -9,6 +9,7 @@ #include #include +#include namespace bdep { @@ -39,7 +40,17 @@ namespace bdep // template void - run_git (const semantic_version&, const dir_path& repo, A&&... args); + run_git (const semantic_version&, + bool progress, + const dir_path& repo, + A&&... args); + + template + inline void + run_git (const semantic_version& min_ver, const dir_path& repo, A&&... args) + { + run_git (min_ver, true /* progress */, repo, forward (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. @@ -95,6 +106,12 @@ namespace bdep // git_repository_status git_status (const dir_path& repo); + + // Run the git push command. + // + template + void + git_push (const common_options&, const dir_path& repo, A&&... args); } #include -- cgit v1.1