fugitive.txt 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730
  1. *fugitive.txt* A Git wrapper so awesome, it should be illegal
  2. Author: Tim Pope <http://tpo.pe/>
  3. License: Same terms as Vim itself (see |license|)
  4. This plugin is only available if 'compatible' is not set.
  5. INTRODUCTION *fugitive*
  6. Whenever you edit a file from a Git repository, a set of commands is defined
  7. that serve as a gateway to Git.
  8. COMMANDS *fugitive-commands*
  9. These commands are local to the buffers in which they work (generally, buffers
  10. that are part of Git repositories).
  11. *fugitive-:G*
  12. :G [args] Same as :Git, but two characters shorter.
  13. *:Git*
  14. :Git {args} Run an arbitrary git command and display any output.
  15. On UNIX this uses a pty and on other platforms it uses
  16. a pipe, which will cause some behavior differences
  17. such as the absence of progress bars. Any file the
  18. command edits (for example, a commit message) will be
  19. loaded into a split window. Closing that window will
  20. resume running the command. A few Git subcommands
  21. have different behavior; these are documented below.
  22. *:Git!*
  23. :Git! {args} Run an arbitrary git command in the background and
  24. stream the output to the preview window. Requires a
  25. Vim with |setbufline()|. Press CTRL-D during an
  26. interactive :Git invocation to switch to this mode
  27. retroactively.
  28. *:Git_--paginate* *:Git_-p*
  29. :Git --paginate {args} Run an arbitrary git command, capture output to a temp
  30. :Git -p {args} file, and |:split| that temp file. Pass ++curwin as
  31. the first argument to |:edit| the temp file instead.
  32. A temp file is always used for commands like diff and
  33. log that typically uses a pager, and for any command
  34. that has the pager.<cmd> Git configuration option set.
  35. :{range}Git! --paginate {args}
  36. :{range}Git! -p {args} Run an arbitrary git command, and insert the output
  37. after {range} in the current buffer.
  38. *fugitive-summary*
  39. :Git With no arguments, bring up a summary window vaguely
  40. akin to git-status. Press g? or see |fugitive-maps|
  41. for usage.
  42. *:Git_blame*
  43. :Git blame [flags] Run git-blame [flags] on the current file and open the
  44. results in a scroll-bound vertical split. The
  45. following maps, which work on the cursor line commit
  46. where sensible, are provided:
  47. g? show this help
  48. A resize to end of author column
  49. C resize to end of commit column
  50. D resize to end of date/time column
  51. gq close blame, then |:Gedit| to return to work
  52. tree version
  53. <CR> close blame, and jump to patch that added line
  54. (or directly to blob for boundary commit)
  55. o jump to patch or blob in horizontal split
  56. O jump to patch or blob in new tab
  57. p jump to patch or blob in preview window
  58. - reblame at commit
  59. ~ reblame at commit~[count]
  60. P reblame at commit^[count]
  61. *g:fugitive_dynamic_colors*
  62. In the GUI or a 256 color terminal, commit hashes will
  63. highlighted in different colors. To disable this:
  64. >
  65. let g:fugitive_dynamic_colors = 0
  66. <
  67. :[range]Git blame [...] If a range is given, just that part of the file will
  68. :Git blame [...] {file} be blamed, and a horizontal split without
  69. scrollbinding is used. You can also give an arbitrary
  70. filename.
  71. *:Git_difftool*
  72. :Git[!] difftool [args] Invoke `git diff [args]` and load the changes into the
  73. quickfix list. Each changed hunk gets a separate
  74. quickfix entry unless you pass an option like
  75. --name-only or --name-status. Jumps to the first
  76. change unless [!] is given.
  77. :Git difftool -y [args] Invoke `git diff [args]`, open each changed file in a
  78. new tab, and invoke |:Gdiffsplit!| against the
  79. appropriate commit.
  80. *:Git_mergetool*
  81. :Git mergetool [args] Like |:Git_difftool|, but target merge conflicts.
  82. Wrappers for Vim built-ins ~
  83. These all directly map onto a built-in Vim command, and generally have names
  84. that prepend "G" to the command they are wrapping. For example, :Ggrep is G
  85. plus |:grep|.
  86. *:Ggrep* *:Git_grep*
  87. :Ggrep[!] [args] An approximation of |:grep|[!] with git-grep as
  88. :Git[!] grep -O [args] 'grepprg'.
  89. :Ggrep[!] --quiet [args]
  90. :Ggrep[!] -q [args] Like |:Ggrep|, but instead of displaying output, open
  91. the quickfix list.
  92. *:Glgrep*
  93. :Glgrep[!] [args] :Ggrep but for |:lgrep|.
  94. :0Git[!] grep -O [args]
  95. *:Gclog*
  96. :Gclog[!] [args] Use git-log [args] to load the commit history into the
  97. |quickfix| list. Jumps to the first commit unless [!]
  98. is given. This command wraps |:cfile|.
  99. The quickfix list can be awkward for many use cases
  100. and exhibits extremely poor performance with larger
  101. data sets. Consider using |:Git| log --oneline
  102. instead.
  103. :{range}Gclog[!] [args] Use git-log -L to load previous revisions of the given
  104. range of the current file into the |quickfix| list.
  105. The cursor is positioned on the first line of the
  106. first diff hunk for each commit. Use :0Gclog to
  107. target the entire file.
  108. *:Gllog*
  109. :Gllog [args] Like |:Gclog|, but use the location list instead of the
  110. |quickfix| list.
  111. *:Gcd*
  112. :Gcd [directory] |:cd| relative to the repository.
  113. *:Glcd*
  114. :Glcd [directory] |:lcd| relative to the repository.
  115. *:Gedit* *fugitive-:Ge*
  116. :Gedit [object] |:edit| a |fugitive-object|.
  117. *:Gsplit*
  118. :Gsplit [object] |:split| a |fugitive-object|.
  119. *:Gvsplit*
  120. :Gvsplit [object] |:vsplit| a |fugitive-object|.
  121. *:Gtabedit*
  122. :Gtabedit [object] |:tabedit| a |fugitive-object|.
  123. *:Gpedit*
  124. :Gpedit [object] |:pedit| a |fugitive-object|.
  125. *:Gdrop*
  126. :Gdrop [object] |:drop| a |fugitive-object|.
  127. *:Gread* *fugitive-:Gr*
  128. :Gread [object] Empty the buffer and |:read| a |fugitive-object|.
  129. When the argument is omitted, this is similar to
  130. git-checkout on a work tree file or git-add on a stage
  131. file, but without writing anything to disk.
  132. :{range}Gread [object] |:read| in a |fugitive-object| after {range}.
  133. *:Gwrite* *fugitive-:Gw*
  134. :Gwrite Write to the current file's path and stage the results.
  135. When run in a work tree file, it is effectively git
  136. add. Elsewhere, it is effectively git-checkout. A
  137. great deal of effort is expended to behave sensibly
  138. when the work tree or index version of the file is
  139. open in another buffer.
  140. :Gwrite {path} You can give |:Gwrite| an explicit path of where in
  141. the work tree to write. You can also give a path like
  142. :0:foo.txt or :0:% to write to just that stage in
  143. the index.
  144. *:Gwq*
  145. :Gwq [path] Like |:Gwrite| followed by |:quit| if the write
  146. succeeded.
  147. :Gwq! [path] Like |:Gwrite|! followed by |:quit|! if the write
  148. succeeded.
  149. *:Gdiffsplit*
  150. :Gdiffsplit [object] Perform a |vimdiff| against the given file, or if a
  151. commit is given, the current file in that commit.
  152. With no argument, the version in the index or work
  153. tree is used, and the work tree version is always
  154. placed to the right or bottom, depending on available
  155. width. Use Vim's |do| and |dp| to stage and unstage
  156. changes.
  157. *:Gdiffsplit!*
  158. :Gdiffsplit! Diff against any and all direct ancestors, retaining
  159. focus on the current window. During a merge conflict,
  160. this is a three-way diff against the "ours" and
  161. "theirs" ancestors. Additional d2o and d3o maps are
  162. provided to obtain the hunk from the "ours" or
  163. "theirs" ancestor, respectively.
  164. :Gdiffsplit! {object} Like |:Gdiffsplit|, but retain focus on the current
  165. window.
  166. *:Gvdiffsplit*
  167. :Gvdiffsplit [object] Like |:Gdiffsplit|, but always split vertically.
  168. *:Ghdiffsplit*
  169. :Gdiffsplit ++novertical [object]
  170. :Ghdiffsplit [object] Like |:Gdiffsplit|, but with "vertical" removed from
  171. 'diffopt'. The split will still be vertical if
  172. combined with |:vertical|.
  173. Other commands ~
  174. These do not directly correspond to any built-in Vim command, and have a
  175. capital letter after the "G" to convey this. For example, the file move
  176. operation has nothing to do with the |:move| built-in, so it is named :GMove,
  177. not :Gmove.
  178. *:GMove*
  179. :GMove {destination} Wrapper around git-mv that renames the buffer
  180. afterward. Add a ! to pass -f.
  181. *:GRename*
  182. :GRename {destination} Like |:GMove| but operates relative to the parent
  183. directory of the current file.
  184. *:GDelete*
  185. :GDelete Wrapper around git-rm that deletes the buffer
  186. afterward. When invoked in an index file, --cached is
  187. passed. Add a ! to pass -f and forcefully discard the
  188. buffer.
  189. *:GRemove* *:GUnlink*
  190. :GRemove Like |:GDelete|, but keep the (now empty) buffer around.
  191. :GUnlink
  192. *:GBrowse*
  193. :GBrowse Open the current file, blob, tree, commit, or tag
  194. in your browser at the upstream hosting provider.
  195. Upstream providers can be added by installing an
  196. appropriate Vim plugin. For example, GitHub can be
  197. supported by installing rhubarb.vim, available at
  198. <https://github.com/tpope/vim-rhubarb>.
  199. :GBrowse {object} Like :GBrowse, but for a given |fugitive-object|.
  200. :{range}GBrowse [args] Appends an anchor to the URL that emphasizes the
  201. selected lines. This also forces the URL to include a
  202. commit rather than a branch name so it remains valid
  203. if the file changes. You can give a range of "0" to
  204. force this behavior without including an anchor.
  205. :GBrowse [...]@{remote} Force using the given remote rather than the remote
  206. for the current branch. The remote is used to
  207. determine which upstream repository to link to.
  208. :GBrowse {url} Open an arbitrary URL in your browser.
  209. :[range]GBrowse! [args] Like :GBrowse, but put the URL on the clipboard rather
  210. than opening it.
  211. MAPS *fugitive-maps*
  212. These maps are available in both the |fugitive-summary| buffer and Fugitive
  213. object buffers, although not all maps make sense in all buffers. Mappings
  214. that operate on the file or hunk under the cursor are generally available in
  215. visual mode to operate on multiple files or partial hunks.
  216. *fugitive-staging-maps*
  217. Staging/unstaging maps ~
  218. *fugitive_s*
  219. s Stage (add) the file or hunk under the cursor.
  220. *fugitive_u*
  221. u Unstage (reset) the file or hunk under the cursor.
  222. *fugitive_-*
  223. - Stage or unstage the file or hunk under the cursor.
  224. *fugitive_U*
  225. U Unstage everything.
  226. *fugitive_X*
  227. X Discard the change under the cursor. This uses
  228. `checkout` or `clean` under the hood. A command is
  229. echoed that shows how to undo the change. Consult
  230. `:messages` to see it again. During a merge conflict,
  231. use 2X to call `checkout --ours` or 3X to call
  232. `checkout --theirs` .
  233. *fugitive_=*
  234. = Toggle an inline diff of the file under the cursor.
  235. *fugitive_>*
  236. > Insert an inline diff of the file under the cursor.
  237. *fugitive_<*
  238. < Remove the inline diff of the file under the cursor.
  239. *fugitive_gI*
  240. gI Open .git/info/exclude in a split and add the file
  241. under the cursor. Use a count to open .gitignore.
  242. *fugitive_I*
  243. I Invoke |:Git| add --patch or reset --patch on the file
  244. P under the cursor. On untracked files, this instead
  245. calls |:Git| add --intent-to-add.
  246. *fugitive_d*
  247. Diff maps ~
  248. *fugitive_dp*
  249. dp Invoke |:Git| diff on the file under the cursor.
  250. Deprecated in favor of inline diffs.
  251. *fugitive_dd*
  252. dd Perform a |:Gdiffsplit| on the file under the cursor.
  253. *fugitive_dv*
  254. dv Perform a |:Gvdiffsplit| on the file under the cursor.
  255. *fugitive_ds* *fugitive_dh*
  256. ds Perform a |:Ghdiffsplit| on the file under the cursor.
  257. dh
  258. *fugitive_dq*
  259. dq Close all but one diff buffer, and |:diffoff|! the
  260. last one.
  261. *fugitive_d?*
  262. d? Show this help.
  263. *fugitive-navigation-maps*
  264. Navigation maps ~
  265. *fugitive_<CR>*
  266. <CR> Open the file or |fugitive-object| under the cursor.
  267. In a blob, this and similar maps jump to the patch
  268. from the diff where this was added, or where it was
  269. removed if a count was given. If the line is still in
  270. the work tree version, passing a count takes you to
  271. it.
  272. *fugitive_o*
  273. o Open the file or |fugitive-object| under the cursor in
  274. a new split.
  275. *fugitive_gO*
  276. gO Open the file or |fugitive-object| under the cursor in
  277. a new vertical split.
  278. *fugitive_O*
  279. O Open the file or |fugitive-object| under the cursor in
  280. a new tab.
  281. *fugitive_p*
  282. p Open the file or |fugitive-object| under the cursor in
  283. a preview window. In the status buffer, 1p is
  284. required to bypass the legacy usage instructions.
  285. *fugitive_~*
  286. ~ Open the current file in the [count]th first ancestor.
  287. *fugitive_P*
  288. P Open the current file in the [count]th parent.
  289. *fugitive_C*
  290. C Open the commit containing the current file.
  291. *fugitive_CTRL-P* *fugitive_(*
  292. ( Jump to the previous file, hunk, or revision.
  293. *fugitive_CTRL-N* *fugitive_)*
  294. ) Jump to the next file, hunk, or revision.
  295. *fugitive_[c*
  296. [c Jump to previous hunk, expanding inline diffs
  297. automatically. (This shadows the Vim built-in |[c|
  298. that provides a similar operation in |diff| mode.)
  299. *fugitive_]c*
  300. ]c Jump to next hunk, expanding inline diffs
  301. automatically. (This shadows the Vim built-in |]c|
  302. that provides a similar operation in |diff| mode.)
  303. *fugitive_[/* *fugitive_[m*
  304. [/ Jump to previous file, collapsing inline diffs
  305. [m automatically. (Mnemonic: "/" appears in filenames,
  306. "m" appears in "filenames".)
  307. *fugitive_]/* *fugitive_]m*
  308. ]/ Jump to next file, collapsing inline diffs
  309. ]m automatically. (Mnemonic: "/" appears in filenames,
  310. "m" appears in "filenames".)
  311. *fugitive_i*
  312. i Jump to the next file or hunk, expanding inline diffs
  313. automatically.
  314. *fugitive_[[*
  315. [[ Jump [count] sections backward.
  316. *fugitive_]]*
  317. ]] Jump [count] sections forward.
  318. *fugitive_[]*
  319. [] Jump [count] section ends backward.
  320. *fugitive_][*
  321. ][ Jump [count] section ends forward.
  322. *fugitive_star*
  323. * On the first column of a + or - diff line, search for
  324. the corresponding - or + line. Otherwise, defer to
  325. built-in |star|.
  326. *fugitive_#*
  327. # Same as "*", but search backward.
  328. *fugitive_gu*
  329. gu Jump to file [count] in the "Untracked" or "Unstaged"
  330. section.
  331. *fugitive_gU*
  332. gU Jump to file [count] in the "Unstaged" section.
  333. *fugitive_gs*
  334. gs Jump to file [count] in the "Staged" section.
  335. *fugitive_gp*
  336. gp Jump to file [count] in the "Unpushed" section.
  337. *fugitive_gP*
  338. gP Jump to file [count] in the "Unpulled" section.
  339. *fugitive_gr*
  340. gr Jump to file [count] in the "Rebasing" section.
  341. *fugitive_gi*
  342. gi Open .git/info/exclude in a split. Use a count to
  343. open .gitignore.
  344. *fugitive_c*
  345. Commit maps ~
  346. cc Create a commit.
  347. ca Amend the last commit and edit the message.
  348. ce Amend the last commit without editing the message.
  349. cw Reword the last commit.
  350. cvc Create a commit with -v.
  351. cva Amend the last commit with -v
  352. cf Create a `fixup!` commit for the commit under the
  353. cursor.
  354. cF Create a `fixup!` commit for the commit under the
  355. cursor and immediately rebase it.
  356. cs Create a `squash!` commit for the commit under the
  357. cursor.
  358. cS Create a `squash!` commit for the commit under the
  359. cursor and immediately rebase it.
  360. cA Create a `squash!` commit for the commit under the
  361. cursor and edit the message.
  362. c<Space> Populate command line with ":Git commit ".
  363. *fugitive_cr*
  364. crc Revert the commit under the cursor.
  365. crn Revert the commit under the cursor in the index and
  366. work tree, but do not actually commit the changes.
  367. cr<Space> Populate command line with ":Git revert ".
  368. *fugitive_cm*
  369. cm<Space> Populate command line with ":Git merge ".
  370. c? Show this help.
  371. *fugitive_cb*
  372. *fugitive_co*
  373. Checkout/branch maps ~
  374. coo Check out the commit under the cursor.
  375. cb<Space> Populate command line with ":Git branch ".
  376. co<Space> Populate command line with ":Git checkout ".
  377. cb? Show this help.
  378. co?
  379. *fugitive_cz*
  380. Stash maps ~
  381. czz Push stash. Pass a [count] of 1 to add
  382. `--include-untracked` or 2 to add `--all`.
  383. czw Push stash of worktree. Like `czz` with
  384. `--keep-index`.
  385. czA Apply topmost stash, or stash@{count}.
  386. cza Apply topmost stash, or stash@{count}, preserving the
  387. index.
  388. czP Pop topmost stash, or stash@{count}.
  389. czp Pop topmost stash, or stash@{count}, preserving the
  390. index.
  391. cz<Space> Populate command line with ":Git stash ".
  392. cz? Show this help.
  393. *fugitive_r*
  394. Rebase maps ~
  395. ri Perform an interactive rebase. Uses ancestor of
  396. u commit under cursor as upstream if available.
  397. rf Perform an autosquash rebase without editing the todo
  398. list. Uses ancestor of commit under cursor as
  399. upstream if available.
  400. ru Perform an interactive rebase against @{upstream}.
  401. rp Perform an interactive rebase against @{push}.
  402. rr Continue the current rebase.
  403. rs Skip the current commit and continue the current
  404. rebase.
  405. ra Abort the current rebase.
  406. re Edit the current rebase todo list.
  407. rw Perform an interactive rebase with the commit under
  408. the cursor set to `reword`.
  409. rm Perform an interactive rebase with the commit under
  410. the cursor set to `edit`.
  411. rd Perform an interactive rebase with the commit under
  412. the cursor set to `drop`.
  413. r<Space> Populate command line with ":Git rebase ".
  414. r? Show this help.
  415. *fugitive-misc-maps*
  416. Miscellaneous maps ~
  417. *fugitive_gq* *fugitive_q*
  418. gq Close the status buffer.
  419. *fugitive_.*
  420. . Start a |:| command line with the file under the
  421. cursor prepopulated.
  422. *fugitive_g?*
  423. g? Show help for |fugitive-maps|.
  424. *fugitive-global-maps*
  425. Global maps ~
  426. *fugitive_c_CTRL-R_CTRL-G*
  427. <C-R><C-G> On the command line, recall the path to the current
  428. |fugitive-object| (that is, a representation of the
  429. object recognized by |:Gedit|).
  430. *fugitive_y_CTRL-G*
  431. ["x]y<C-G> Yank the path to the current |fugitive-object|.
  432. *g:fugitive_no_maps*
  433. Global maps can be disabled with the g:fugitive_no_maps option.
  434. >
  435. let g:fugitive_no_maps = 1
  436. <
  437. SPECIFYING OBJECTS *fugitive-object* *fugitive-revision*
  438. Fugitive objects are either work tree files or Git revisions as defined in the
  439. "SPECIFYING REVISIONS" section in the git-rev-parse man page, with expansions
  440. inspired by |cmdline-special| layered on top. For commands that accept an
  441. optional object, the default is the file in the index for work tree files and
  442. the work tree file for everything else. Example objects follow.
  443. Object Meaning ~
  444. @ The commit referenced by @ aka HEAD
  445. master The commit referenced by master
  446. master^ The parent of the commit referenced by master
  447. master...other The merge base of master and other
  448. master: The tree referenced by master
  449. ./master The file named master in the working directory
  450. :(top)master The file named master in the work tree
  451. Makefile The file named Makefile in the work tree
  452. @^:Makefile The file named Makefile in the parent of HEAD
  453. :Makefile The file named Makefile in the index (writable)
  454. @~2:% The current file in the grandparent of HEAD
  455. :% The current file in the index
  456. :1:% The current file's common ancestor during a conflict
  457. :2:# The alternate file in the target branch during a conflict
  458. :3:#5 The file from buffer #5 in the merged branch during a conflict
  459. ! The commit owning the current file
  460. !:Makefile The file named Makefile in the commit owning the current file
  461. !3^2 The second parent of the commit owning buffer #3
  462. .git/config The repo config file
  463. : The |fugitive-summary| buffer
  464. - A temp file containing the last |:Git| invocation's output
  465. <cfile> The file or commit under the cursor
  466. STATUSLINE *fugitive-statusline*
  467. *FugitiveStatusline()* *fugitive#statusline()*
  468. Add %{FugitiveStatusline()} to your statusline to get an indicator including
  469. the current branch and the currently edited file's commit. If you don't have
  470. a statusline, this one matches the default when 'ruler' is set:
  471. >
  472. set statusline=%<%f\ %h%m%r%{FugitiveStatusline()}%=%-14.(%l,%c%V%)\ %P
  473. <
  474. AUTOCOMMANDS *fugitive-autocommands*
  475. A handful of |User| |autocommands| are provided to allow extending and
  476. overriding Fugitive behaviors. Example usage:
  477. >
  478. autocmd User FugitiveBlob,FugitiveStageBlob call s:BlobOverrides()
  479. <
  480. *User_FugitiveTag*
  481. FugitiveTag After loading a tag object.
  482. *User_FugitiveCommit*
  483. FugitiveCommit After loading a commit object.
  484. *User_FugitiveTree*
  485. FugitiveTree After loading a tree (directory) object.
  486. *User_FugitiveBlob*
  487. FugitiveBlob After loading a committed blob (file) object.
  488. *User_FugitiveObject*
  489. FugitiveObject After loading any of the 4 above buffer types.
  490. *User_FugitiveStageBlob*
  491. FugitiveStageBlob After loading a staged blob (file) object. These
  492. buffers are 'modifiable' and oftentimes don't want the
  493. same behavior as the other buffer types.
  494. *User_FugitiveIndex*
  495. FugitiveIndex After loading the |fugitive-summary| buffer.
  496. *User_FugitivePager*
  497. FugitivePager After loading a temp file created by a command like
  498. :Git --paginate or :Git blame.
  499. *User_FugitiveEditor*
  500. FugitiveEditor After a :Git command (e.g., :Git commit) edits a file
  501. (e.g., the commit message).
  502. *User_FugitiveChanged*
  503. FugitiveChanged After any event which can potentially change the
  504. repository, for example, any invocation of |:Git|.
  505. Originally intended for expiring caches, but can have
  506. other uses.
  507. API *fugitive-api*
  508. Officially supported functions are documented inline in plugin/fugitive.vim.
  509. DEPRECATIONS *fugitive-deprecated*
  510. The following commands are deprecated in favor of replacements that adhere to
  511. a new naming scheme. Remember that |:Git| can be shortened to |:G|, so
  512. replacements using it are just one space character longer than the legacy
  513. version.
  514. *:Gremove* Superseded by |:GRemove|.
  515. *:Gdelete* Superseded by |:GDelete|.
  516. *:Gmove* Superseded by |:GMove|.
  517. *:Grename* Superseded by |:GRename|.
  518. *:Gbrowse* Superseded by |:GBrowse|.
  519. *:Gdiff* Superseded by |:Gdiffsplit|
  520. *:Gsdiff* Superseded by |:Ghdiffsplit|
  521. *:Gvdiff* Superseded by |:Gvdiffsplit| or |:vert| |:Gdiffsplit|.
  522. *:Gblame* Superseded by |:Git_blame|.
  523. *:Gcommit* Superseded by |:Git| commit.
  524. *:Gmerge* Superseded by |:Git| merge and |:Git_mergetool|.
  525. *:Gpull* Superseded by |:Git| pull.
  526. *:Grebase* Superseded by |:Git| rebase.
  527. *:Grevert* Superseded by |:Git| revert.
  528. *:Gpush* Superseded by |:Git| push.
  529. *:Gfetch* Superseded by |:Git| fetch.
  530. *:Glog* Superseded by |:Gclog|.
  531. *:Gstatus* Superseded by |:Git| (with no arguments).
  532. *:Gsplit!* Superseded by |:Git_--paginate|.
  533. *:Gvsplit!* Superseded by :vert Git --paginate.
  534. *:Gtabsplit!* Superseded by :tab Git --paginate.
  535. *:Gpedit!* Superseded by :Git! --paginate.
  536. *User_Fugitive*
  537. Fugitive used to support `:autocmd User Fugitive` to run an autocommand after
  538. loading any buffer belonging to a Git repository, but this has been phased
  539. out. Instead, one can leverage regular autocommand events like |BufNewFile|
  540. and |BufReadPost|, and check !empty(FugitiveGitDir()) to confirm Fugitive has
  541. found a repository. See also |fugitive-autocommands| for other, more
  542. selective events.
  543. ABOUT *fugitive-about*
  544. Grab the latest version or report a bug on GitHub:
  545. https://github.com/tpope/vim-fugitive
  546. vim:tw=78:et:ft=help:norl: