Tim Pope
07b8277475
Move FugitiveHead() documentation to plugin file
2021-07-24 07:56:45 -04:00
Mike Williams
75b2a9a8da
Improve PowerShell support with recent Vim
...
References: https://github.com/tpope/vim-fugitive/pull/1783
2021-07-24 07:28:07 -04:00
Dmytro Meleshko
a7c54990f0
Don't execute autocmds during :GBrowse with range
2021-07-21 18:23:26 -04:00
Tim Pope
de6495ae84
Better support for ssh config
...
* Respect User and Port in addition to Hostname.
* Support globs and negations in addition to literal host matching.
* Parse global config file in addition to user config file.
* Handle Include declarations.
References: https://github.com/tpope/vim-rhubarb/issues/65
2021-07-17 18:52:27 -04:00
Tim Pope
58516a13c6
Support expanding ## as argument list
...
Closes https://github.com/tpope/vim-fugitive/issues/1792
2021-07-16 18:38:00 -04:00
Tim Pope
1c2663f516
Use :echomsg for deprecation warnings
...
Resolves: https://github.com/tpope/vim-fugitive/issues/1789
2021-07-12 15:56:27 -04:00
Tim Pope
b5316d0e96
Avoid stepping on status window in :Gclog/:Gllog
...
Closes https://github.com/tpope/vim-fugitive/issues/1790
2021-07-12 15:49:14 -04:00
Tim Pope
e9f93be356
Generalize :GBrowse - to all temp buffers
2021-07-12 15:49:14 -04:00
Tim Pope
fd5b553029
Tighten loose regexp
2021-07-12 15:49:14 -04:00
Tim Pope
3e2d531322
Fix error parsing worktree out of config
...
Resolves: https://github.com/tpope/vim-fugitive/issues/1788
2021-07-11 23:12:13 -04:00
Tim Pope
4cdeff8c33
Remove unnecessary -complete on command with no arguments
...
References https://github.com/vim/vim/pull/8544
2021-07-11 11:33:31 -04:00
Tim Pope
7412370dc8
Don't assume unrecognized status headers are refs
...
Every time I experiment with adding a new header this burns me.
2021-07-10 17:56:29 -04:00
Tim Pope
78d41a014e
Don't abbreviate :vertical
...
Change the :Gvdiffsplit definition so that we're consistent with <mods>.
And make everything else consistent with that.
2021-07-10 17:49:17 -04:00
Tim Pope
957d962e06
Error when core.worktree expected but missing
2021-07-09 12:52:20 -04:00
Tim Pope
f920245d6b
Avoid spurious window resizing in :Gdiffsplit
...
Closes https://github.com/tpope/vim-fugitive/issues/1787
2021-07-09 12:52:20 -04:00
Elias Norrby
5551853f34
Fix ternary expression in s:NullError
...
Only the leading part was removed in ae6f84a .
Fixes #1785
2021-07-08 08:59:46 -04:00
Tim Pope
b498607aa7
Don't assume FugitiveGitDir() is actual directory
...
This is currently a valid assumption, but it boxes us in. Instead use
fugitive#Find('.git/'), which is guaranteed to return a path to an
actual directory.
Also use fugitive#Find('.git/refs/..') to determine the common
directory.
2021-07-05 16:45:54 -04:00
Tim Pope
0ec3bb2bdd
Use cwd to find Git repository for terminal window
...
Closes https://github.com/tpope/vim-fugitive/issues/1520
2021-07-05 16:45:54 -04:00
Tim Pope
d11c90ad66
Save filenames from rename rather than splitting on " -> "
2021-07-04 10:36:49 -04:00
Tim Pope
ca03f1d069
Fix write in index with guioptions=!
2021-07-04 10:36:49 -04:00
Tim Pope
ae6f84adf3
Handle empty items when null splitting
...
This correctly handles the case of multiple consecutive nulls (which I
don't think Git every produces in practice) and also the case of a bogus
newline at the end (which seems to happen with PowerShell).
References https://github.com/tpope/vim-fugitive/pull/1783
2021-07-04 10:36:49 -04:00
Tim Pope
8e0a8abf08
Don't capture trailing count as part of section header
...
We don't need this, and it gets in the way.
2021-07-03 06:00:36 -04:00
Tim Pope
ca0ff578ad
Move config getter implementation into autoload file
2021-07-03 06:00:36 -04:00
Tim Pope
24d1c60364
Unify location of blame maps
2021-06-25 17:14:37 -04:00
Tim Pope
79e2bd381a
Fix pager usage for :Git reflog
...
Resolves: https://github.com/tpope/vim-fugitive/issues/1772
2021-06-19 19:39:21 -04:00
Tim Pope
857c107e5a
Fix typo
2021-06-19 12:40:17 -04:00
Tim Pope
be9ff95f27
Avoid guioptions=! issues in :Git --paginate
...
Resolves: https://github.com/tpope/vim-fugitive/issues/1767
2021-06-11 17:41:37 -04:00
Tim Pope
c26b4b018a
Fix shell escaping edge case on win32
...
This is a proactive fix; no erroneous behavior has been observed.
2021-06-11 17:41:37 -04:00
Tim Pope
41960996e0
Eliminate unnecessary redraw to clear up :Gdiffsplit sync issue
...
Resolves: https://github.com/tpope/vim-fugitive/issues/1750
2021-06-06 15:38:10 -04:00
Tim Pope
8886d97070
Fix missing bang on function declaration
...
This causes a error during reloading on older versions of Vim.
2021-06-06 15:38:10 -04:00
Tim Pope
f7f1413ed9
Disable PTY when using win32 Git in WSL
...
References: https://github.com/tpope/vim-fugitive/issues/1751
2021-06-02 23:00:19 -04:00
Tim Pope
10ed70a9c2
Don't call exists() on invalid function name
...
References: https://github.com/tpope/vim-fugitive/issues/1751
2021-05-31 19:37:14 -04:00
Tim Pope
9eec18e76b
Guard against unloaded plugin in runtime files
...
This can happen if g:loaded_fugitive is set to disable the plugin, or in
a botched install.
2021-05-31 11:54:04 -04:00
Tim Pope
9871822dd5
Avoid possible hang on failure to start job
...
References: https://github.com/tpope/vim-fugitive/issues/1751
2021-05-28 17:20:01 -04:00
Tim Pope
6ae064c5aa
Tighten match for commit under cursor in temp buffers
...
Closes https://github.com/tpope/vim-fugitive/issues/1756
2021-05-27 10:37:24 -04:00
Tim Pope
798f65a180
Fix variable reference in s:Remote()
2021-05-27 10:37:24 -04:00
Tim Pope
da8d532b1a
Support default value as third FugitiveConfigGet() argument
2021-05-26 09:23:34 -04:00
Tim Pope
bee78a418f
Unify use of FugitiveConfig helpers
2021-05-26 09:15:25 -04:00
Tim Pope
28afd12151
Handle quoted strings in g:fugitive_git_executable
...
Taking the option that was historically a shell command and treating it
as a space-delimited argument list means that there's no longer any way
to include a space in an argument. Let's rectify that by reusing a
simplified version of the argument parser in s:SplitExpandChain(), which
handles both single and double quoted strings in a way similar to how
shells do it.
Of course, the ideal solution is to just use a list of strings to begin
with. Support for that is added here as well.
References: https://github.com/tpope/vim-fugitive/issues/1751
# This is the commit message #2 :
squash! Accept argument list for g:fugitive_git_executable
2021-05-26 08:53:51 -04:00
Tim Pope
dd01e40106
Use local not upstream branch name for :GBrowse default
...
When I first wrote this code, I believed push.default=upstream to be the
One True Way, and I used the upstream as the default branch when one
wasn't passed into :GBrowse. Since then, my preferred workflow has
shifted to push.default=current, with my upstream pointed at the
repository's integration branch (typically master), which means :GBrowse
effectively ignores our current branch, which is less than helpful.
This change eliminates :GBrowse's use of the upstream tracking branch
except in 2 scenarios:
* When push.default=upstream
* When the current branch has never been pushed (since using the current
branch would result in a 404).
2021-05-26 08:53:51 -04:00
Tim Pope
47a07a0a32
Standardize method for disabling foldmethod=marker
...
The foldmarker option does appear to be buffer local (despite being
documented as window local), so it should be safe to use this
everywhere.
2021-05-26 08:53:51 -04:00
Tim Pope
7a75c18554
Fix :Git mergetool line offset
...
This was broken in 895e56daca by
misreading a version constraint.
Resolves: https://github.com/tpope/vim-fugitive/issues/1755
2021-05-26 08:53:51 -04:00
Maksim Odnoletkov
c926aadfaf
Fix deprecation error in :GBlame
2021-05-18 14:40:47 -04:00
Tim Pope
0868c30cc0
Tighten up diff highlighting
...
Closes https://github.com/tpope/vim-fugitive/issues/1747
2021-05-12 13:50:44 -04:00
Tim Pope
32b0d62663
Hunt other tabs for window on :tab Git
...
I'm not 100% sure if this is the correct (as in least surprising)
behavior, but it seems like as good of place as any to start.
Closes https://github.com/tpope/vim-fugitive/issues/1740
2021-05-02 06:52:14 -04:00
Faisal Shah
8f4a23e663
Fix capitalization
2021-04-23 16:22:00 -04:00
Tim Pope
f7a6097caa
Change deprecated q and D maps to errors
2021-04-22 18:20:15 -04:00
Tim Pope
b227b887bb
Replace HEAD with @
...
The @ shortcut for HEAD was introduced in 1.8.5, which we now require.
2021-04-16 15:19:39 -04:00
Tim Pope
895e56daca
Require Git 1.8.5 or newer
...
The removed checks for 1.9 were rounded up 1.8.5 requirements. This
version has everything we need.
2021-04-16 15:19:39 -04:00
Tim Pope
55e9f2f47e
Fix README formatting
2021-04-16 15:19:39 -04:00