Commit Graph

2218 Commits

Author SHA1 Message Date
Tim Pope
61b51c09b7 Fix race conditions generating sequencer sections
Resolves: https://github.com/tpope/vim-fugitive/issues/2411
2025-07-15 17:27:19 -04:00
Tim Pope
e0715fe729 Fix check for revert/cherry-pick
Undoing a bad search and replace in
4bc9d98993
2025-07-15 17:27:19 -04:00
Tim Pope
53d6ba99bc Remove unnecessary include guard 2025-07-15 17:27:19 -04:00
Josh Priddle
d3e2b58dec Fix GBrowse for newer Netrw versions
In vim/vim@ef92555 the arity of `netrw#BrowseX` changed from 2 to 1.
There is now a `netrw#os#Open()` function that can be used to open URLs
instead.
2025-07-11 20:18:39 -04:00
Tim Pope
593f831d6f Fix interpretation of :% when % is absolute
We're trying to support two different Git syntaxes here that were never
meant to be mixed.  We want :/foo/bar to be interpreted as the pathspec
:(top)foo/bar, but we want :% to be interpreted as the % file in the
index, even when % is /foo/bar.

Resolves: https://github.com/tpope/vim-fugitive/issues/2404
2025-06-19 14:33:59 -04:00
Tim Pope
4a745ea72f Remove antiquated a map
Resolves: https://github.com/tpope/vim-fugitive/issues/2380
2025-02-19 17:44:04 -05:00
Tim Pope
b068eaf1e6 Drop */# maps in visual mode
Resolves: https://github.com/tpope/vim-fugitive/issues/2374
2025-02-02 23:33:54 -05:00
Tim Pope
d74a7cff4c Add cW map as commit --fixup=reword:
References: https://github.com/tpope/vim-fugitive/pull/2369
2025-01-20 01:35:07 -05:00
Tim Pope
f4e8453ce7 Replace cA map with cn
Following Magit's lead.

References: https://github.com/tpope/vim-fugitive/pull/2369
2025-01-20 01:35:07 -05:00
Tim Pope
de42a732ee Fix help tag for g?
References: https://github.com/tpope/vim-fugitive/issues/2320
2025-01-20 01:21:42 -05:00
Tim Pope
174230d6a7 Make :GRename ./ and ../ respect parent dir of current file
References: https://github.com/tpope/vim-eunuch/issues/114
2024-12-29 02:29:26 -05:00
embedded
fcb4db52e7 Use netrw#Open if available (#2361) 2024-12-15 18:44:08 -05:00
Kevin Hwang
320b18fba2 Fix tab Gdiffsplit opening empty buffer 2024-11-19 12:16:44 -05:00
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