Tim Pope
b736e457b3
Provide FugitiveRemote()
2021-11-13 16:25:36 -05:00
Tim Pope
88c7f867cf
Further decouple #BufReadStatus() from v:cmdbang
2021-10-16 12:58:13 -04:00
Tim Pope
dd39902e3d
Minor performance improvement to global map definition
2021-09-30 12:43:23 -04:00
Tim Pope
bb89a7a497
Invert flag for lazy initialization
...
I think this second argument might become an optional buffer number at
some point, so change the special value for lazy to an invalid buffer
number.
2021-09-19 07:54:03 -04:00
Tim Pope
e2927fb467
Force current buffer number for FugitiveStatusline()
...
This is normally the default, but might be different during an event
like FugitiveChanged.
2021-09-10 16:13:51 -04:00
Tim Pope
6b1d90251e
Support lazy initialization in statusline indicator
...
Resolves: https://github.com/tpope/vim-fugitive/issues/1834
2021-09-10 15:51:47 -04:00
Tim Pope
bb4d1dd9a8
Eliminate internal use of FugitiveCommonDir()
...
Lead by example.
2021-09-10 15:51:41 -04:00
Tim Pope
ed6b45a81a
Drop unused args parameter from :Gcommand implementations
...
We stopped using this in 6356bbc4a7 .
2021-09-07 13:56:14 -04:00
Tim Pope
6f07d7e6cd
Make initialization lazy
2021-09-06 19:03:55 -04:00
Tim Pope
2a53d79248
fugitive.vim 3.4
...
* Use jobs for all Git execution. Faster and less prone to user error.
* Stream :Git! to the preview window.
* Make :Git grep behave like other :Git commands, not :Ggrep.
* Silence output and open quickfix list on :Ggrep -q.
* Support :Ggrep outside repository with --no-index.
* Expand ##, $ENVVAR, and ~/path in arguments to :Git.
* Expand "%" and other special sequences during tab completion.
* Improve tab completion for :Git push.
* Disable -- More -- prompt on :Git push, fetch, and --no-pager.
* Provide FugitiveObject/FugitiveStageBlob/FugitivePager events.
* Simplify :Gdiffsplit "smart" split direction.
* Support jump to commit in :Git log --graph.
* Use local not upstream branch name for :GBrowse default.
* Better support for ssh config in :GBrowse.
* Replace older deprecation warnings with error messages.
* Assorted public API enhancements.
* Require Git 1.8.5 or newer.
* Require Vim 7.3 or newer. Full functionality requires Vim 8.1.
* Directly echo :Git output for trivial commands like "add" on Vim 7.
* Fix E1208 when loading plugin on Vim 8.2.3141.
2021-09-02 13:03:27 -04:00
Tim Pope
2e395fa450
Provide FugitiveDidChange()
2021-09-01 19:20:46 -04:00
Tim Pope
2f3cd4715d
Remove :Gcgrep
...
This was a hedge in case I decided to go all in with symmetry with
:Gclog. I have decided to to.
2021-09-01 19:20:46 -04:00
Tim Pope
8bdbbf88a4
Change :Gstatus to error stub
2021-09-01 17:39:28 -04:00
Tim Pope
2b37219021
Fix check for -addr=other on nvim
...
I arrived at 0.4.0 by blaming the documentation, but apparently the
feature didn't land until later.
2021-08-31 16:33:21 -04:00
Tim Pope
30bf224453
Fix direct blame maps in short files
...
Patch 8.1.560 is the gift that keeps on giving. Let's work around this
for now by bolting on a new behavior to the previously unused :0,0Git
blame. Long term, we probably want to come up with a different
interface.
2021-08-31 12:01:21 -04:00
Tim Pope
74b0960f5b
Add deprecation warning to FugitivePrepare()
...
I am eager to reclaim this verb, so let's deprecate sooner rather than
later.
2021-08-25 05:00:04 -04:00
Tim Pope
de02a4ba84
Change deprecated Git wrappers to error stubs
2021-08-25 05:00:04 -04:00
Tim Pope
93174147cd
Provide FugitiveGitVersion()
...
I should have made fugitive#GitVersion() official a long time ago.
Better late than never.
2021-08-25 05:00:04 -04:00
Tim Pope
b06ad2a839
Provide FugitiveExecute()
2021-08-25 05:00:04 -04:00
Tim Pope
89ab2d95cd
Drop Vim requirement to 7.3
...
The code base still supports 7.3 (7.2.061 to be precise) so no harm in
dropping this for one final release.
2021-08-22 22:09:48 -04:00
Tim Pope
557ef84c6d
Improve public API argument order flexibility
2021-08-22 22:09:48 -04:00
Tim Pope
4e6b7b6ce9
Don't accept 0 to refer to alternate buffer
...
This allows a sensible interpretation when using 0 as a stand-in for
"false". You can use bufnr('#') if you need the old behavior.
2021-08-21 19:55:43 -04:00
Tim Pope
98039f3349
Move FugitivePath() away from documented functions
...
This function has weird semantics and does not rise to the level of its
peers.
2021-08-20 13:09:20 -04:00
Tim Pope
aae36024b8
Introduce FugitiveShellCommand() to replace FugitivePrepare()
...
We've moved on from the shell as the one true way, so let's demote the
one true preparation function.
2021-08-20 10:24:57 -04:00
Tim Pope
2fc1a0017c
Accept buffer numbers and dictionaries in FugitiveDetect()
...
This makes it easier to use FugitiveDetect() to initialize a temp file
that sits outside of the repository.
2021-08-17 17:19:46 -04:00
Tim Pope
80e7c63fb1
Support jump to file under cursor in :Git -p grep
...
This also adds support for :Git -p status, since we basically already
have an implementation for it.
2021-08-17 17:18:20 -04:00
Tim Pope
5853cb0fc3
Tweak documentation for FugitiveResult()
2021-08-10 02:35:52 -04:00
Tim Pope
d1970112f4
Rename #Prepare to #ShellCommand
...
Shell commands are on their way out. Let's start reclaiming this verb.
2021-08-10 00:35:17 -04:00
Tim Pope
dfae8191f4
Fix FugitiveIsGitDir()
2021-08-08 05:04:38 -04:00
Tim Pope
89c9f96d49
Fix FugitiveHead() for certain arities
2021-08-08 01:39:05 -04:00
Tim Pope
b8ba07f7d8
Improve flexibility of public API argument order
...
This allows tomfoolery like FugitiveConfig(dir)->FugitiveConfigGet(key).
I'm not sure I want to officially endorse this usage, but if nothing
else it makes interactive debugging a bit more fluid.
2021-08-08 00:48:27 -04:00
Tim Pope
f58ac20359
Generalize FugitiveIsGitDir() to check for buffer Git dir
2021-08-08 00:48:08 -04:00
Tim Pope
2ee6a48d0b
Apply insteadOf to raw remote URLs in addition to remote names
...
This also retools FugitiveRemoteUrl() argument handling to be a bit more
flexible.
2021-08-07 15:51:07 -04:00
Tim Pope
7a087725ee
Encourage FugitiveFind() over FugitiveGitDir()
2021-08-03 11:45:25 -04:00
Tim Pope
5f87622277
Add methods to config object
...
Do not rely on these. The FugitiveConfigGet() family of functions
remains official, for now.
2021-07-26 12:04:52 -04:00
Tim Pope
d6edaf7a4d
Document autocommands
2021-07-26 07:09:30 -04:00
Tim Pope
8820f3f89c
Document FugitiveRemoteUrl()
2021-07-26 07:09:30 -04:00
Tim Pope
7ab4ab9796
Document FugitiveGitDir()
2021-07-26 07:09:30 -04:00
Tim Pope
295780c507
Tweak phrasing of FugitiveConfig() family documentation
2021-07-26 07:09:30 -04:00
Tim Pope
07b8277475
Move FugitiveHead() documentation to plugin file
2021-07-24 07:56:45 -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
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
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
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
ca0ff578ad
Move config getter implementation into autoload file
2021-07-03 06:00:36 -04:00
Tim Pope
da8d532b1a
Support default value as third FugitiveConfigGet() argument
2021-05-26 09:23:34 -04:00
Tim Pope
9a1dab0b27
Require Vim 7.4 or newer
...
This renders a lot of other version checks inside the plugin obsolete,
but I'm going to hold off on cleaning them up until I'm sure this change
is permanent.
2021-04-16 09:27:25 -04:00