mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-09 03:53:47 -05:00
Compare commits
42 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
85c6c7a837 | ||
|
|
6f9fa8a4b1 | ||
|
|
65a53b5f5c | ||
|
|
0a75ec5d9b | ||
|
|
80ff014d21 | ||
|
|
b5f7c37d93 | ||
|
|
6d2a83232a | ||
|
|
ea38c7d664 | ||
|
|
2c30e116ed | ||
|
|
1988518904 | ||
|
|
2a817bb53a | ||
|
|
38c69cfebc | ||
|
|
70a36ceef8 | ||
|
|
f71079db4d | ||
|
|
cbf96cc01a | ||
|
|
8fa5cad8d7 | ||
|
|
251853bc1e | ||
|
|
639b9f9a54 | ||
|
|
13f39967f4 | ||
|
|
d39d5ca429 | ||
|
|
bb54881388 | ||
|
|
f7bcf51c56 | ||
|
|
cc9d8d93c8 | ||
|
|
b571bff9ec | ||
|
|
5c2095be39 | ||
|
|
5d11ff7501 | ||
|
|
dd4d4c7595 | ||
|
|
013ee636f5 | ||
|
|
ddec4bfa86 | ||
|
|
f8913cda12 | ||
|
|
68e097db6f | ||
|
|
d850dff16e | ||
|
|
8977570aa6 | ||
|
|
caf89d797f | ||
|
|
c8b1a7d9b6 | ||
|
|
0e2680f9ae | ||
|
|
8c43505037 | ||
|
|
fecd42864a | ||
|
|
01e7a7e1e6 | ||
|
|
b129752c07 | ||
|
|
aa0210a986 | ||
|
|
d7c377f3ba |
@@ -45,7 +45,7 @@ providers such as [GitHub][rhubarb.vim], [GitLab][fugitive-gitlab.vim], and
|
||||
[fugitive-gitlab.vim]: https://github.com/shumphrey/fugitive-gitlab.vim
|
||||
[fubitive.vim]: https://github.com/tommcdo/vim-fubitive
|
||||
|
||||
Add `%{fugitive#statusline()}` to `'statusline'` to get an indicator
|
||||
Add `%{FugitiveStatusline()}` to `'statusline'` to get an indicator
|
||||
with the current branch in (surprise!) your statusline.
|
||||
|
||||
Last but not least, there's `:Git` for running any arbitrary command,
|
||||
|
||||
3281
autoload/fugitive.vim
Normal file
3281
autoload/fugitive.vim
Normal file
File diff suppressed because it is too large
Load Diff
@@ -54,8 +54,8 @@ that are part of Git repositories).
|
||||
dv |:Gvdiff|
|
||||
O |:Gtabedit|
|
||||
o |:Gsplit|
|
||||
p |:Git| add --patch
|
||||
p |:Git| reset --patch (staged files)
|
||||
P |:Git| add --patch
|
||||
P |:Git| reset --patch (staged files)
|
||||
q close status
|
||||
r reload status
|
||||
S |:Gvsplit|
|
||||
@@ -87,6 +87,10 @@ that are part of Git repositories).
|
||||
*fugitive-:Gpull*
|
||||
:Gpull [args] Like |:Gmerge|, but for git-pull.
|
||||
|
||||
*fugitive-:Grebase*
|
||||
:Grebase [args] Like |:Gmerge|, but for git-rebase. Interactive
|
||||
rebase not suppported.
|
||||
|
||||
*fugitive-:Gpush*
|
||||
:Gpush [args] Invoke git-push, load the results into the |quickfix|
|
||||
list, and invoke |:cwindow| to reveal any errors.
|
||||
@@ -326,13 +330,13 @@ and the work tree file for everything else. Example revisions follow.
|
||||
|
||||
Revision Meaning ~
|
||||
HEAD .git/HEAD
|
||||
master .git/refs/heads/master
|
||||
HEAD^{} The commit referenced by HEAD
|
||||
HEAD^ The parent of the commit referenced by HEAD
|
||||
HEAD: The tree referenced by HEAD
|
||||
/HEAD The file named HEAD in the work tree
|
||||
refs/heads/x .git/refs/heads/x
|
||||
@ The commit referenced by @ aka HEAD
|
||||
master^ The parent of the commit referenced by master
|
||||
master: The tree referenced by master
|
||||
/master The file named master in the work tree
|
||||
Makefile The file named Makefile in the work tree
|
||||
HEAD^:Makefile The file named Makefile in the parent of HEAD
|
||||
@^:Makefile The file named Makefile in the parent of HEAD
|
||||
:Makefile The file named Makefile in the index (writable)
|
||||
- The current file in HEAD
|
||||
^ The current file in the previous commit
|
||||
@@ -346,16 +350,16 @@ HEAD^:Makefile The file named Makefile in the parent of HEAD
|
||||
|
||||
STATUSLINE *fugitive-statusline*
|
||||
|
||||
*fugitive#statusline()*
|
||||
Add %{fugitive#statusline()} to your statusline to get an indicator including
|
||||
*FugitiveStatusline()* *fugitive#statusline()*
|
||||
Add %{FugitiveStatusline()} to your statusline to get an indicator including
|
||||
the current branch and the currently edited file's commit. If you don't have
|
||||
a statusline, this one matches the default when 'ruler' is set:
|
||||
>
|
||||
set statusline=%<%f\ %h%m%r%{fugitive#statusline()}%=%-14.(%l,%c%V%)\ %P
|
||||
set statusline=%<%f\ %h%m%r%{FugitiveStatusline()}%=%-14.(%l,%c%V%)\ %P
|
||||
<
|
||||
*fugitive#head(...)*
|
||||
Use fugitive#head() to return the name of the current branch. If the current
|
||||
HEAD is detached, fugitive#head() will return the empty string, unless the
|
||||
*FugitiveHead(...)* *fugitive#head(...)*
|
||||
Use FugitiveHead() to return the name of the current branch. If the current
|
||||
HEAD is detached, FugitiveHead() will return the empty string, unless the
|
||||
optional argument is given, in which case the hash of the current commit will
|
||||
be truncated to the given number of characters.
|
||||
|
||||
|
||||
1
ftdetect/fugitive.vim
Normal file
1
ftdetect/fugitive.vim
Normal file
@@ -0,0 +1 @@
|
||||
autocmd BufReadPost *.fugitiveblame setfiletype fugitiveblame
|
||||
3248
plugin/fugitive.vim
3248
plugin/fugitive.vim
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user