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
Tim Pope
f5451e4379
fugitive.vim 3.3
...
* Replace :! :Git backend with smart job runner.
* Replace special cased commit/revert/rebase/merge/etc. with regular :Git.
* Support :Git -c config.name=value and other common flags.
* Improve completion of :Git subcommands, including hiding plumbing commands.
* Improve completion of arguments to :Git subcommands.
* Show unpulled and unpushed sections for both upstream and push remote.
* Introduce capitalized naming scheme for :GMove/:GRename/:GRemove/:GDelete/:GBrowse.
* Expand SSH host aliases in remote URLs for :GBrowse.
* Enable opening arbitrary URLs with :GBrowse.
* Add warnings to deprecated commands.
* Remove all other temp buffer commands in favor of :Git --paginate.
* Don't automatically invoke :setlocal foldmethod=syntax in Fugitive buffers.
* Support colored :Git blame commits in 256 color terminals.
* Bug fixes.
2021-04-15 12:15:38 -04:00
Tim Pope
0365bcd76e
Provide FugitiveConfigGetRegexp()
...
This is intended to double as way to check for the presence of any other
Fugitive 3.3 feature.
2021-04-15 10:15:29 -04:00
Tim Pope
2165884d13
Provide FugitiveResult()
2021-04-15 10:15:29 -04:00
Tim Pope
d4e8c29084
Account for invalid b:git_dir in FugitiveGitDir()
...
The "fugitive:" variant was set by a naive regexp in ftplugin/git*.vim
until a relatively recent fix.
2021-04-13 03:37:30 -04:00
Tim Pope
ae45609cfc
Proactively detect Git dir if autocommand hasn't triggered
...
This is a little clunky, but enabling !empty(FugitiveGitDir()) to work
in autocommands that trigger before ours should provide an acceptable
replacement for the "User Fugitive" event and will hopefully enable us
to unltimately eliminate preemptive detection entirely.
2021-04-12 14:32:10 -04:00
Tim Pope
54cc9d01ad
Always set b:git_dir
...
This makes it possible to tell when detection hasn't happened yet, and
is potentially a stepping stone to doing it on the fly.
2021-04-12 13:31:42 -04:00
Tim Pope
649cb2dc05
Add deprecation warnings to :Glog and :Gstatus
2021-04-12 12:07:52 -04:00
Tim Pope
47479a6cc2
Add :Glog and :Gstatus to list of opt-out legacy commands
2021-04-12 12:03:12 -04:00
Tim Pope
b4255d6679
Add notices to deprecated lowercase commands
2021-04-06 20:43:26 -04:00
Tim Pope
e474785adb
Handle non-config dictionary passed to FugitiveConfig()
2021-04-03 20:44:31 -04:00