Skip to content

Commit f960f4a

Browse files
committed
git-all: added --errors option
1 parent 65c9abf commit f960f4a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

git-all

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ module GitUpdate
2525
end
2626

2727
def GitUpdate.top_ten category, message, lines, second_flag=false, marker='='
28+
return if $params[:fetch].value and marker == '='
29+
2830
if not lines.empty? or ($params[:verbose].value and not second_flag)
2931
separator
3032
puts marker * 2 + " #{category} " + marker * 2 + " #{message}"
@@ -130,6 +132,9 @@ Main {
130132
option(:fetch) {
131133
description 'Fetch from all remotes'
132134
}
135+
option(:errors) {
136+
description 'Only show Git failures'
137+
}
133138
option(:fetchonly) {
134139
description 'Only fetch, nothing else'
135140
}

0 commit comments

Comments
 (0)