gitconfig: update delta color scheme

This commit is contained in:
Rob Watson 2021-03-29 15:09:50 +02:00
parent 336fa7c7b3
commit f3ba02aa7e
2 changed files with 12 additions and 1 deletions

View File

@ -54,7 +54,9 @@
diffFilter = delta --color-only diffFilter = delta --color-only
[delta] [delta]
side-by-side = true side-by-side = true
[delta "decorations"] plus-style = 'syntax "#142e20"'
zero-style = 'syntax "#1d1f21" dim'
minus-style = 'syntax "#36181d"'
commit-decoration-style = bold yellow box ul commit-decoration-style = bold yellow box ul
file-style = bold yellow ul file-style = bold yellow ul
file-decoration-style = none file-decoration-style = none

9
script/validatecommit.rb Normal file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env ruby
#
# frozen_string_literal: true
msg = File.read(ARGV[0])
unless /\A[[:upper:]]/.match?(msg)
puts 'Commit message does not start with an uppercase character'
exit 1
end