Tim Pope
d4877e54ce
Use keepalt for diff maps
...
Resolves: https://github.com/tpope/vim-fugitive/issues/2336
2024-09-06 21:00:15 -04:00
Julio B
1d18c696c4
Disable modelines for status buffers
...
Regression introduced in 8c8cdf4405 .
Resolves: https://github.com/tpope/vim-fugitive/issues/2333
2024-09-02 14:43:35 -04:00
Tim Pope
0444df68cd
Use nvim vim.ui.open as a fallback
...
Resolves: https://github.com/tpope/vim-fugitive/pull/2322
2024-07-18 19:59:03 -04:00
Tim Pope
8c8cdf4405
Use callback based workflow for status buffer
2024-07-05 12:04:03 -04:00
David Briscoe
5661dea7be
Format the full body instead of separating title
...
Fix #2315 : Gedit strips newlines when commit lacks a blank line
%B is the "raw body (unwrapped subject and body)". Since we're
displaying both, we can use that to avoid any changes to the message
content. %B was added to git in 1.7.2 (2010) in commit
1367b12ad623e28546ba40c435015d94e7fbb248, and fugitive requires 1.8.5 so
it's safe to use.
2024-07-05 11:59:21 -04:00
Tim Pope
d0c1a43753
Clarify dq behavior
...
Resolves: https://github.com/tpope/vim-fugitive/issues/2196
2024-06-25 22:34:34 -04:00
Tim Pope
64d6cafb9d
Rearrange :Git documentation
...
Resolves: https://github.com/tpope/vim-fugitive/issues/2314
2024-06-12 12:59:20 -04:00
Tim Pope
4f59455d23
Use rev-parse to get abbrev length for status buffer
2024-05-19 10:52:16 -04:00
Tim Pope
7493b78e6b
Fix :Git difftool without -y
...
Resolves: https://github.com/tpope/vim-fugitive/issues/2307
2024-05-19 10:52:16 -04:00
Tim Pope
09ffa8fc08
Fix :Git difftool -y
...
Resolves: https://github.com/tpope/vim-fugitive/issues/2306
2024-05-19 00:37:06 -04:00
Tim Pope
5a9bd42dd8
Make push map available on P
...
I think matching the Magit interface is probably a better use of P than
wrapping --patch. As a baby step in that direction, allow P to invoke
the same experimental behavior as "s" or "-".
2024-05-17 16:10:36 -04:00
Tim Pope
a0b0c1ddc1
Normalize path before quoting it
2024-05-17 14:01:06 -04:00
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