From 7b1d87903eecb5cc4c7b36721782f8b1d3616911 Mon Sep 17 00:00:00 2001 From: Robert Fletcher Date: Sun, 8 Sep 2024 10:36:30 -0700 Subject: [PATCH] shorten message when deleting branches (#98) It's a noisy line, and we print out the branches that are deleted immediately afterwards. --- lib/baes/git.rb | 2 +- spec/baes/git_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/baes/git.rb b/lib/baes/git.rb index 0b7578d..102553b 100644 --- a/lib/baes/git.rb +++ b/lib/baes/git.rb @@ -77,7 +77,7 @@ def gc def delete_branches(branch_names) return if branch_names.empty? - output.puts("deleting branches: #{branch_names.join(", ")}") + output.puts("deleting branches") output.puts(run_or_raise("git branch -d #{branch_names.join(" ")}")) end diff --git a/spec/baes/git_spec.rb b/spec/baes/git_spec.rb index 30faeb8..92fcd3a 100644 --- a/spec/baes/git_spec.rb +++ b/spec/baes/git_spec.rb @@ -210,7 +210,7 @@ def run_and_rescue described_class.delete_branches(["branch1", "branch2"]) - expect(output.string).to eq("deleting branches: branch1, branch2\nout\n") + expect(output.string).to eq("deleting branches\nout\n") end it "returns early when branch_names is empty" do