From 18bb25efa41dab4a3f7619040e2067da3533decd Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 24 Jan 2019 21:41:48 +0300 Subject: Add support for --no-progress option --- bdep/release.cxx | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'bdep/release.cxx') diff --git a/bdep/release.cxx b/bdep/release.cxx index cb4cac9..e550d32 100644 --- a/bdep/release.cxx +++ b/bdep/release.cxx @@ -888,17 +888,20 @@ namespace bdep brspec = st.branch + ':' + string (st.upstream, p + 1); } - // Note that we suppress the (too detailed) push command output if - // the verbosity level is 1. However, we still want to see the - // progress in this case. - // - run_git (git_ver, - prj.path, - "push", - verb < 1 ? "-q" : verb >= 2 ? "-v" : nullptr, - remote, - brspec, - !tagspec.empty () ? tagspec.c_str () : nullptr); + if (verb && !o.no_progress ()) + { + diag_record dr (text); + dr << "pushing branch " << st.branch; + + if (prj.tag) + dr << ", tag " << *prj.tag; + } + + git_push (o, + prj.path, + remote, + brspec, + !tagspec.empty () ? tagspec.c_str () : nullptr); } return 0; -- cgit v1.1