aboutsummaryrefslogtreecommitdiff
path: root/bdep/git.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'bdep/git.hxx')
-rw-r--r--bdep/git.hxx19
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>