diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2019-04-10 22:56:22 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2019-04-16 16:27:18 +0300 |
commit | bf02b66c61d941a60e45520ef77f677dad36557e (patch) | |
tree | 0d61c6a06e868aeee2d6375a8581f87a47eac5b1 /bdep/git.ixx | |
parent | 842b2c6604be98a7f5d05cb674ae121d716eeb64 (diff) |
Add --amend and --squash options to bdep-release
Diffstat (limited to 'bdep/git.ixx')
-rw-r--r-- | bdep/git.ixx | 19 |
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 */); + } } |