News for hackers. Stuff that matters.
Re:Git 2.13 by bruce_one on Wednesday May 10, 2017 @01:05AM (#14306031)
Ooh, this might mean some vim-fugitive beauty is on the horizon :-)

The vim-fugitive Gdiff is a really nice interface (imo) and a stash equivalent would be amazing :-)

Re:Git 2.13 by mrout on Wednesday May 10, 2017 @01:33AM (#14306116)
To me the most useful parts of fugitive, the only things that actually feel more useful than the command line equivalents, are fugitive-:Gdiff and fugitive-:Gblame.

:Gblame is particularly useful.

Re:Git 2.13 by Watabou on Wednesday May 10, 2017 @02:07AM (#14306217)
Did you try tig [1]? I prefer the command line solution to shoving complicated things and UI (which fugitive is -- I could barely remmeber all the features I had and like you, I only really ever used the :Gblame command the most) into vim. I prefer to have vim be lightweight and let other tools do their job (i.e the UNIX way).

I don't use fugitive now but I do make full use of tig. In my .vimrc I have:

    nnoremap <leader>gb :echo system("git rev-parse --abbrev-ref @ <bar> tr -d '\n'")<CR>
    nnoremap <leader>go :silent !tig<CR>:silent redraw!<CR>
    nnoremap <leader>gB :silent !tig blame % +<C-r>=expand(line('.'))<CR><CR>:silent redraw!<CR>
The above solution leaves vim purely for editing, and tig for doing the actual git presentation.

Asciinema demo of tig blame: https://asciinema.org/a/4as7ujt8cpnpyx0doyrervatl

Just like fugitive, I can travel back and forth through history. And if I hit q, I'm back in vim.

[1]: https://github.com/jonas/tig

Re:Git 2.13 by akavel on Wednesday May 10, 2017 @11:31AM (#14308921)
I also sometimes find :Gstatus useful when resolving merges/rebases/cherry-picks. Makes it easier and faster to iterate through the affected files.