From bf02b66c61d941a60e45520ef77f677dad36557e Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 10 Apr 2019 22:56:22 +0300 Subject: Add --amend and --squash options to bdep-release --- bdep/git.txx | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'bdep/git.txx') diff --git a/bdep/git.txx b/bdep/git.txx index 5ff5e6c..f3bedf0 100644 --- a/bdep/git.txx +++ b/bdep/git.txx @@ -89,7 +89,7 @@ namespace bdep template optional - git_line (const semantic_version& min_ver, bool ie, A&&... args) + git_line (const semantic_version& min_ver, bool ie, char delim, A&&... args) { fdpipe pipe (open_pipe ()); auto_fd null (ie ? open_dev_null () : auto_fd ()); @@ -100,7 +100,21 @@ namespace bdep ie ? null.get () : 2 /* stderr */, forward (args)...)); - return git_line (move (pr), move (pipe), ie); + return git_line (move (pr), move (pipe), ie, delim); + } + + template + inline optional + git_line (const semantic_version& min_ver, bool ie, A&&... args) + { + return git_line (min_ver, ie, '\n' /* delim */, forward (args)...); + } + + template + inline optional + git_string (const semantic_version& min_ver, bool ie, A&&... args) + { + return git_line (min_ver, ie, '\0' /* delim */, forward (args)...); } template -- cgit v1.1