Skip to content

Commit

Permalink
shorten message when deleting branches (#98)
Browse files Browse the repository at this point in the history
It's a noisy line, and we print out the branches that are deleted
immediately afterwards.
  • Loading branch information
mockdeep authored Sep 8, 2024
1 parent fbe48df commit 7b1d879
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/baes/git.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion spec/baes/git_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b1d879

Please sign in to comment.