Tim Pope
10fb874d7e
Filter out bold/underline typesetting in man output
...
Resolves: https://github.com/tpope/vim-fugitive/issues/2300
2024-05-17 13:16:03 -04:00
Tim Pope
110e7ca00c
Ignore missing ssh include files
2024-05-15 12:46:29 -04:00
Tim Pope
19ca61c78c
Support ~ in ssh config include
...
Resolves: https://github.com/tpope/vim-rhubarb/issues/79
2024-05-15 12:44:27 -04:00
lakshayg
5b0347b523
Fix syntax error in autoload/fugitive.vim
...
The error was introduced in ed9e21fb9b
2024-05-15 02:12:36 -04:00
Tim Pope
ed9e21fb9b
Support :Git difftool --check
...
Resolves: https://github.com/tpope/vim-fugitive/issues/2303
2024-05-14 23:46:05 -04:00
Tim Pope
ce882460cf
Support Git flags inside of aliases
...
Resolves: https://github.com/tpope/vim-fugitive/issues/2298
2024-05-01 18:17:05 -04:00
Yida Zhang
dac8e5c2d8
Fix TempReadPost returning 0
2024-04-08 01:40:26 -04:00
Tim Pope
c0b03f1cac
Restore winfixbuf consideration in status blur
...
The revert in a83135b55b was a bit too
aggressive. We can support winfixbuf being set on the status buffer
without setting it ourselves.
2024-03-31 16:12:45 -04:00
Tim Pope
a83135b55b
Revert "Set winfixbuf on status windows"
...
This reverts commit 8d4e8d4538 . Once the
dust has settled I'll reconsider.
References: https://github.com/tpope/vim-fugitive/issues/2272
References: https://github.com/tpope/vim-fugitive/discussions/2275
References: https://github.com/tpope/vim-fugitive/issues/2276
References: https://github.com/tpope/vim-fugitive/issues/2278
References: https://github.com/tpope/vim-fugitive/issues/2282
References: https://github.com/tpope/vim-fugitive/issues/2286
2024-03-28 16:43:46 -04:00
Tim Pope
2377e16e66
Fix misfire of User FugitivePager
...
Resolves: https://github.com/tpope/vim-fugitive/issues/2283
2024-03-26 14:15:09 -04:00
Yifan Hu
193ba9b393
Fix typo for advice.statusHints
2024-03-21 10:17:05 -07:00
Tim Pope
8d4e8d4538
Set winfixbuf on status windows
...
Resolves: https://github.com/tpope/vim-fugitive/issues/2272
2024-03-16 12:42:25 -04:00
Tim Pope
549e283d15
Set winfixbuf on blame windows
...
References: https://github.com/tpope/vim-fugitive/issues/2272
2024-03-16 12:37:29 -04:00
Tim Pope
fe4ba848ba
Avoid reuse of winfixbuf windows
...
References: https://github.com/tpope/vim-fugitive/issues/2272
2024-03-16 12:35:36 -04:00
Tim Pope
41beedabc7
For push map, never push to fetch remote
...
There are legitimate reasons to push to the fetch remote, but making it
possible from the push map makes it too easy to do by default.
2024-03-03 19:57:59 -05:00
Tim Pope
ded6eb9da3
Use fewer buffer variables for status buffer
2024-03-02 14:35:07 -05:00
Tim Pope
eedb203ba7
Introduce stat.push and stat.merge
2024-03-02 14:19:32 -05:00
Tim Pope
840ce4a9d9
Move push_remote and fetch_remote into stat
2024-03-02 13:53:14 -05:00
Tim Pope
16ffd9623e
Move pull_type into stat
2024-03-02 13:50:23 -05:00
Tim Pope
85eef8003e
Don't assume default value for branch.*.merge
...
Commands like git-merge and git-pull seem not to make this assumption,
so neither should we.
2024-03-02 13:50:21 -05:00
Tim Pope
2e88f14a58
Avoid settabvar()
...
Still seeing ml_get errors on older Vim. I give up.
Resolves: https://github.com/tpope/vim-fugitive/pull/2262
2024-02-24 14:01:27 -05:00
Tim Pope
69687f28d4
Move props into stat
2024-02-18 01:09:49 -05:00
Tim Pope
4bc9d98993
Replace status buffer contents atomically
2024-02-18 01:08:14 -05:00
Tim Pope
011cf4fcb9
Give status exec result variable a clearer name
2024-02-11 21:57:03 -05:00
Tim Pope
801b0417a5
Fix shortened :call command
2024-02-11 21:57:03 -05:00
Tim Pope
9f92ff14d9
Update tabpagenr('#') version constraint to fix ml_get error
...
References: https://github.com/tpope/vim-fugitive/pull/2262
2024-02-11 20:53:40 -05:00
Tim Pope
2a388ef5ba
Allow for numeric tab argument in <mods>
...
Support was added in Vim 9.0.0786.
2024-02-11 20:06:40 -05:00
Tim Pope
ddedd5bd20
Add corresponding nvim check for tabpagenr('#')
2024-02-11 16:13:25 -05:00
Tim Pope
8376227c9d
Avoid tabpagenr('#') on Vim versions without it
...
References: https://github.com/tpope/vim-fugitive/pull/2262
2024-02-11 12:32:23 -05:00
Tim Pope
e3cdf27e19
Remove error handler from status BufReadCmd
...
The only error that should be possible here now is the version check, so
do that explicitly instead.
2024-02-10 19:46:54 -05:00
Tim Pope
3d9cace1ff
Reorder status BufReadCmd
...
Put all the stuff that actually updates the buffer together, so we can
soft reload without triggering autocommands or doing redundant work.
The reason for the previous ordering was to allow a bit of parallelism
while the diff commands ran in the background. Let's try to preserve
that for map definitions by running them in parallel to the status
command instead.
I'm not sure why 'nomodifiable' was set after BufReadPost. Let's try
the more natural ordering and see if anything breaks.
2024-02-10 16:28:13 -05:00
Tim Pope
41ef77c058
Defer initializing b:fugitive_files until rendering status
2024-02-10 16:28:13 -05:00
Tim Pope
fab00f7c0f
Always use absolute path for :Ggrep quickfix list
...
Ran into an issue where a running Vim (Neovim 0.9.5) consistently
treated a relative path not as the file in the current directory, but as
a different open buffer that matched the file name. The relative path
was just for cosmetics; let's switch to absolute so Vim doesn't butcher
it.
2024-02-08 14:08:06 -05:00
Luke Davis
e7bf502a6a
Avoid resetting 'last accessed tab' status
2024-02-02 11:57:28 -05:00
Alex Klapheke
f116dcc8e2
Fix misaligned output of :G blame -s
...
Due to a regex not capturing (and concealing) all the spaces behind
the current file's line numbers, the close parentheses after the line
numbers are misaligned, and the blame buffer is made too wide.
2024-01-27 14:36:55 -05:00
Tim Pope
854a8df0d0
Support edit script when temp dir name contains space
...
Looks like GIT_EDITOR supports quotes now.
Resolves: https://github.com/tpope/vim-fugitive/issues/2255
2024-01-19 18:01:25 -05:00
Tim Pope
ec8f7eed10
Fix handling of Include in SSH config
...
The Include directive behaves very literally. The old implementation
assumed a level of encapsulation that just doesn't match the actual
implementation.
2024-01-17 18:49:30 -05:00
Tim Pope
ac673f1e08
Relay stdin in s:StdoutFile() on Vim 7
...
Resolves: https://github.com/tpope/vim-fugitive/issues/2254
2024-01-17 18:48:07 -05:00
Tim Pope
c4a38c92dc
Return first, not last, value for FugitiveConfigGet()
2024-01-17 18:33:54 -05:00
Tim Pope
2c999d4a69
Fix write to index on Vim 7
...
Resolves: https://github.com/tpope/vim-fugitive/issues/2254
2024-01-17 18:25:41 -05:00
Gregory Anders
5965909358
Buffer output when using the pager
...
As of 10ed587f65 all output is captured to
a temp file before being displayed. When the output is not buffered, the
stdout/stderr callback is called to perform post-processing for each
output chunk. Instead, buffer all output and perform the post-processing
all at once.
This results in a substantial performance improvement for repositories
with many commits.
2023-12-15 18:17:17 -05:00
Tim Pope
46eaf8918b
Fix variable scope
2023-10-29 13:00:04 -04:00
Tim Pope
df36d194ce
Prototype "reverse :GBrowse"
...
Use `:Gedit https://github.com/ ...` (or any other URL supported by an
installed :GBrowse provider) to edit the corresponding `fugitive://`
URL. The dictionary g:fugitive_url_origins maps between homepage URLs
and local repositories:
let g:fugitive_url_origins = {
'https://github.com/me/my-repo ': '~/Projects/my-repo'}
It also checks the remotes of the repository that the currently edited
buffer belongs to.
This is an experimental prototype. That means no documentation, and no
guarantees about behavior. In particular, g:fugitive_url_origins and
the current contortions to leverage the existing :GBrowse API will
likely be dropped once a better API has been developed.
References: https://github.com/tpope/vim-fugitive/issues/2223
2023-10-09 20:53:12 -04:00
Tim Pope
cbe9dfa162
Salvage :Ggrep ... commit:path/
...
Resolves: https://github.com/tpope/vim-fugitive/issues/2224
2023-10-09 20:53:12 -04:00
Tim Pope
f6ec378d1d
Decouple running git-status from parsing output
2023-09-27 20:50:43 -04:00
Tim Pope
99db68d9b3
Handle status diff file arguments more rigorously
2023-09-18 11:19:09 -04:00
Tim Pope
b9cf6ad994
Avoid implicit repository when rendering status buffer
...
Enable this code to run asynchronously by removing any assumptions about
the current buffer.
2023-09-18 11:19:09 -04:00
Tim Pope
7679842b90
Only diff known changed files for status
...
This should improve performance on large repositories.
References: https://github.com/tpope/vim-fugitive/issues/2207
2023-09-17 21:11:14 -04:00
Tim Pope
86a372d8c3
Respect GIT_INDEX_FILE when diffing for status buffer
2023-09-17 21:11:14 -04:00
Tim Pope
f2133ca50b
Expire cached blank Git dir on active Fugitive invocation
...
Resolves: https://github.com/tpope/vim-fugitive/issues/2213
2023-09-17 21:11:14 -04:00