Commit graph

20 commits

Author SHA1 Message Date
Sanchayan Maity 4f8f2c8016 nvim: autoload/git: Set upstream when checking out remote branch 2022-12-06 19:15:03 +05:30
Sanchayan Maity d057fa0385 nvim: fugitive: Execute commands while keeping current alt file
Keep current alternate file where possible for git commands executed
via fugitive.
2022-06-19 15:48:57 +05:30
Sanchayan Maity 2d17fe00ab nvim: autoload/git: Use difftool for review
The difftool version is actually useful since it populates the quickfix
list when the -y argument is not used. This gives rise to a possibility
where the quickfix list can be filtered to ignore or look only at files
we want.

While at it also add the version which opens each changed file in a tab
and gives a diffsplit view.
2022-04-03 08:53:46 +05:30
Sanchayan Maity 6ae7da9eca nvim: autoload/git: Introduce a difftool version for git diff 2022-04-02 17:21:23 +05:30
Sanchayan Maity c95289343a nvim: autoload/git: Fix the arguments to diff
Not sure how we keep getting this wrong.
2022-04-02 11:04:13 +05:30
Sanchayan Maity 96bc70fff8 Revert "nvim: autoload/git: Fix git log when current branch is master/main"
This reverts commit da5671b5ae.

The commit actually did not handle all cases correctly.
2022-02-19 14:14:40 +05:30
Sanchayan Maity 6dd369b137 nvim: autoload/git: Use diff instead of difftool 2022-02-12 10:18:28 +05:30
Sanchayan Maity da5671b5ae nvim: autoload/git: Fix git log when current branch is master/main 2022-02-10 21:31:57 +05:30
Sanchayan Maity 4edfa99a21 nvim: autoload/ftplugin: git: Add helper for format-patch 2022-02-10 21:31:57 +05:30
Sanchayan Maity 7d70992eae nvim: after/plugin/fugitive: Add mapping to help with review 2022-02-10 21:20:51 +05:30
Sanchayan Maity 3cf20c4822 nvim: autoload/git: Generate a helpful name to use with stash 2022-01-19 17:44:15 +05:30
Sanchayan Maity 1f165bbed4 nvim: autoload/git: Fix the arguments to difftool 2021-10-20 22:14:05 +05:30
Sanchayan Maity 2548f63793 nvim: plugins: Drop diffview
Something as basic as :DiffviewOpen <commit> does not work.
2021-10-20 22:11:38 +05:30
Sanchayan Maity 350a6edd2c nvim: fugitive/git: Add git helper to push upstream
Now that we set push.default to nothing in our git configuration, add
a git helper to figure out the upstream for the current branch and push
it.
2021-09-25 13:21:01 +05:30
Sanchayan Maity efaba37bcf nvim: fugitive/git: Add helper to rename branch 2021-07-15 21:12:27 +05:30
Sanchayan Maity d3b8cec40a nvim: git: Add functionality to restore using git reflog 2021-07-09 10:34:12 +05:30
Sanchayan Maity a16c244fce nvim: autoload/ftplugin: git: Add rebase and merge helpers 2021-06-17 16:58:12 +05:30
Sanchayan Maity a9c91c06e4 nvim: autoload: git: Use bwipeout instead of bdelete
Really delete the buffer. If bdelete is used, we can still go back to
the previous buffer using <C-^> which we do not want. Basically we do
not want a fugitive git buffer to become alternate-file.

See :help alternate-file.
2021-05-14 16:33:45 +05:30
Sanchayan Maity b064bb14a9 nvim: lua: plugins: Add diffview
Also add a helper on lines similar to Git difftool from fugitive.
2021-05-03 19:25:38 +05:30
Sanchayan Maity b9e5fb64bf nvim: fugitive: Refactor and add some more git helpers 2021-04-27 09:29:41 +05:30