aboutsummaryrefslogtreecommitdiff
path: root/bdep/git.ixx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-04-10 22:56:22 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-04-16 16:27:18 +0300
commitbf02b66c61d941a60e45520ef77f677dad36557e (patch)
tree0d61c6a06e868aeee2d6375a8581f87a47eac5b1 /bdep/git.ixx
parent842b2c6604be98a7f5d05cb674ae121d716eeb64 (diff)
Add --amend and --squash options to bdep-release
Diffstat (limited to 'bdep/git.ixx')
-rw-r--r--bdep/git.ixx19
1 files changed, 19 insertions, 0 deletions
diff --git a/bdep/git.ixx b/bdep/git.ixx
index dbc43cb..f06a000 100644
--- a/bdep/git.ixx
+++ b/bdep/git.ixx
@@ -35,4 +35,23 @@ namespace bdep
"-C", repo,
forward<A> (args)...);
}
+
+ template <typename... A>
+ inline optional<string>
+ git_string (const semantic_version& min_ver,
+ const dir_path& repo,
+ bool ie,
+ A&&... args)
+ {
+ return git_string (min_ver,
+ ie,
+ "-C", repo,
+ forward<A> (args)...);
+ }
+
+ inline optional<string>
+ git_string (process&& pr, fdpipe&& pipe, bool ignore_error)
+ {
+ return git_line (move (pr), move (pipe), ignore_error, '\0' /* delim */);
+ }
}