diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-01-24 21:41:48 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-01-25 15:16:58 +0300 |
commit | 18bb25efa41dab4a3f7619040e2067da3533decd (patch) | |
tree | 822bd06dd0a9d5568c14862592d310fec1012b58 /bdep/git.hxx | |
parent | a4dabaa6db8806f23bb7d7bdbb95cab456ef3a73 (diff) |
Add support for --no-progress option
Diffstat (limited to 'bdep/git.hxx')
-rw-r--r-- | bdep/git.hxx | 19 |
1 files changed, 18 insertions, 1 deletions
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 <bdep/types.hxx> #include <bdep/utility.hxx> +#include <bdep/common-options.hxx> namespace bdep { @@ -39,7 +40,17 @@ namespace bdep // template <typename... A> 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 <typename... A> + inline void + run_git (const semantic_version& min_ver, const dir_path& repo, A&&... args) + { + run_git (min_ver, true /* progress */, repo, forward<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. @@ -95,6 +106,12 @@ namespace bdep // git_repository_status git_status (const dir_path& repo); + + // Run the git push command. + // + template <typename... A> + void + git_push (const common_options&, const dir_path& repo, A&&... args); } #include <bdep/git.ixx> |