diff --git a/gitconfig b/gitconfig index be41f09..f1d92ed 100644 --- a/gitconfig +++ b/gitconfig @@ -54,7 +54,9 @@ diffFilter = delta --color-only [delta] 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 file-style = bold yellow ul file-decoration-style = none diff --git a/script/validatecommit.rb b/script/validatecommit.rb new file mode 100644 index 0000000..90f717b --- /dev/null +++ b/script/validatecommit.rb @@ -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