Set hash length to 7
Signed-off-by: Juraj Oravec <sgd.orava@gmail.com>
This commit is contained in:
parent
b53a17a04d
commit
bf84e376d2
@ -96,7 +96,7 @@ def blame(filename)
|
||||
|
||||
content.split(/(?<=^[a-f0-9]{40})/).each_with_index do |line, line_number|
|
||||
if line_number == 0
|
||||
@hash = line.split("\n").last.truncate(12)
|
||||
@hash = line.split("\n").last.truncate(7)
|
||||
end
|
||||
|
||||
next if line_number == 0
|
||||
@ -120,7 +120,7 @@ def blame(filename)
|
||||
|
||||
output << "%s %s\t%-4s %s\n" % [@hash.colorize(Authors[author].getColor()), Authors[author].initials, line_number, code]
|
||||
|
||||
@hash = line.split("\n").last.truncate(12)
|
||||
@hash = line.split("\n").last.truncate(7)
|
||||
end
|
||||
|
||||
output << "\n"
|
||||
|
Loading…
Reference in New Issue
Block a user