Compare commits

...

4 commits

Author SHA1 Message Date
851fba8adb
git-blame-ignore-revs: Ignore move of git config to XDG_CONFIG_HOME 2024-12-03 17:52:41 +05:30
3ed37f8a87
git: Move config to XDG_CONFIG_HOME 2024-12-03 17:52:09 +05:30
a1a7c8b272
git: Enable rerere 2024-12-03 17:52:09 +05:30
b1a6212749
nvim: fugitive: Improve git blame
Improve git blame by
- w: Ignoring white space
- C: Detect lines moved or copied in the same commit
- C: The commit that created the file
- C: Any commit at all
2024-12-03 17:52:09 +05:30
3 changed files with 6 additions and 2 deletions

View file

@ -4,3 +4,5 @@
7f086ca74a9402899238c6dda003c1db1e72d5b4
# Tabs to spaces for colors/yolokai.vim
a039a58dd2917341f1962d5d21df9380c53bf43a
# Move git config to XDG_CONFIG_HOME
3ed37f8a87a7c5d11ff86adb9e56a899e6547d91

View file

@ -77,6 +77,8 @@
updateRefs = true
[receive]
fsckObjects = true
[rerere]
enabled = true
[sendemail]
smtpserver = /usr/bin/msmtp
[stash]

View file

@ -1,6 +1,6 @@
nnoremap <Leader>ga :Git add %<CR>
nnoremap <Leader>gA :Git reset HEAD %<CR>
xnoremap <Leader>gb :Git blame<CR>
xnoremap <Leader>gb :Git blame -w -C -C -C -M<CR>
nnoremap <Leader>gb :keepalt Git branch -a<CR>
nnoremap <Leader>gB :keepalt Git branch<SPACE>
nnoremap <Leader>gc :Git checkout -b<SPACE>
@ -20,7 +20,7 @@ nnoremap <Leader>gl :keepalt Git log --stat %<CR>
nnoremap <Leader>gL :keepalt Git log --stat -n 100<CR>
xnoremap <Leader>gl :<C-U>call git#git_log_range()<CR>
xnoremap <Leader>gL :call git#git_log_named_block()<CR>
nnoremap <Leader>gm :0,3Git blame<CR><C-w>j<CR>
nnoremap <Leader>gm :0,3Git blame -w -C -C -C -M<CR><C-w>j<CR>
nnoremap <Leader>gM :call git#git_merge_origin()<CR>
nnoremap <Leader>gn :Git branch -m<SPACE>
nnoremap <Leader>go :call git#git_log_compare()<CR>