Skip to content

Commit 23e78a9

Browse files
committed
git-all: don't always print NEED X in --verbose mode
1 parent b961bad commit 23e78a9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

git-all

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,12 @@ module GitUpdate
9292
git_log = "git --git-dir='#{@git_dir}' log --no-merges --oneline"
9393

9494
out = `#{git_log} #{remote_sha}..#{branch.gcommit.sha}`
95-
top_ten 'NEED PUSH', "#{working_dir}\##{branch.name}", out.split("\n")
95+
top_ten('NEED PUSH', "#{working_dir}\##{branch.name}",
96+
out.split("\n"), true)
9697

9798
out = `#{git_log} #{branch.gcommit.sha}..#{remote_sha}`
98-
top_ten 'NEED PULL', "#{working_dir}\##{branch.name}", out.split("\n")
99+
top_ten('NEED PULL', "#{working_dir}\##{branch.name}",
100+
out.split("\n"), true)
99101
end
100102
end
101103
end

0 commit comments

Comments
 (0)