Skip to content

Commit 675c5c5

Browse files
committed
git-all: print only the first 80 chars of any line
1 parent 7ff3320 commit 675c5c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-all

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module GitUpdate
3131
if lines.empty?
3232
@last_empty = true
3333
else
34-
puts lines.first(10)
34+
puts lines.first(10).map { |line| line[0...80] }
3535
if lines.size > 10
3636
puts "... (and #{lines.size - 10} more)"
3737
end

0 commit comments

Comments
 (0)