aboutsummaryrefslogtreecommitdiff
path: root/bdep/git.ixx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-08-04 16:13:29 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-08-04 16:18:46 +0300
commit40273d053e3024dc5c9acd063882a848358df4fa (patch)
treedaea63d4294ee90e98e819028706e8869719c84b /bdep/git.ixx
parent7c5d099c8d1142ffd2c05863169a624c2711eb1c (diff)
Add archive checksum files to build2-control branch in bdep-publish
Diffstat (limited to 'bdep/git.ixx')
-rw-r--r--bdep/git.ixx20
1 files changed, 18 insertions, 2 deletions
diff --git a/bdep/git.ixx b/bdep/git.ixx
index 0ee94ac..e71375a 100644
--- a/bdep/git.ixx
+++ b/bdep/git.ixx
@@ -6,8 +6,24 @@ using namespace butl;
namespace bdep
{
- optional<string>
- git_line (process&&, fdpipe&&, bool);
+ template <typename... A>
+ inline void
+ run_git (const dir_path& repo, A&&... args)
+ {
+ return run ("git", "-C", repo, forward<A> (args)...);
+ }
+
+ template <typename I, typename O, typename E, typename... A>
+ inline process
+ start_git (I&& in, O&& out, E&& err, const dir_path& repo, A&&... args)
+ {
+ return start (forward<I> (in),
+ forward<O> (out),
+ forward<E> (err),
+ "git",
+ "-C", repo,
+ forward<A> (args)...);
+ }
template <typename... A>
inline optional<string>