From 88da7e0c917a82765b1972b07181305adecebd0b Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 23 Jul 2018 08:57:00 +1200 Subject: Set gitconfig commit.verbose, clear commit.status --- git/gitconfig.mi5 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git/gitconfig.mi5 b/git/gitconfig.mi5 index a7053486..edd7be77 100644 --- a/git/gitconfig.mi5 +++ b/git/gitconfig.mi5 @@ -14,7 +14,7 @@ ui = true [commit] - status = false + verbose = true [core] compression = 9 -- cgit v1.2.3 From 09cc56ec7d075dcc53013821454f70c5db4b105c Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 23 Jul 2018 10:11:44 +1200 Subject: Refactor Git commit cursor column with snip line --- vim/autoload/gitcommit.vim | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/vim/autoload/gitcommit.vim b/vim/autoload/gitcommit.vim index 56b35ba6..170cc2d0 100644 --- a/vim/autoload/gitcommit.vim +++ b/vim/autoload/gitcommit.vim @@ -1,18 +1,19 @@ " Choose the color column depending on non-comment line count function! gitcommit#CursorColumn() abort - " Last line number - let l:ll = line('$') - " If we can find a line after the first that isn't a comment, we're " composing the message - if l:ll > 1 - for l:li in range(2, l:ll) - if getline(l:li) !~# '^\s*#' - return '+1' - endif - endfor - endif + for l:num in range(1, line('$')) + if l:num == 1 + continue + endif + let l:line = getline(l:num) + if strpart(l:line, 0, 1) !=# '#' + return '+1' + elseif l:line =~# '^# -\{24} >8 -\{24}$' + break + endif + endfor " Otherwise, we're still composing our subject return '51' -- cgit v1.2.3 From ea10050feba76602a40aacaab2987bf874f7a4e8 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Mon, 23 Jul 2018 10:14:07 +1200 Subject: Bump VERSION --- VERSION | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 53c0d8a8..2b5290b0 100644 --- a/VERSION +++ b/VERSION @@ -1,2 +1,2 @@ -tejr dotfiles v1.37.1 -Sun Jul 22 10:51:40 UTC 2018 +tejr dotfiles v1.37.2 +Sun Jul 22 22:14:02 UTC 2018 -- cgit v1.2.3