Tim Pope
d0dceb9feb
Change subtopic help tag style from :Git- to :Git_
...
This is less Git-like, but a bit more Vim-like, and doesn't force us
into the awkward :Git---paginate.
2020-02-29 22:37:57 -05:00
Tim Pope
87f998e15f
Remove erroneous :Gedit! deprecation
...
The ! to :Gedit has always been passed to :edit and not used for Git
execution like the others.
2020-02-22 20:56:27 -05:00
Tim Pope
8b83d6ec6c
Use :pedit for :Git! --paginate
2020-02-22 20:14:33 -05:00
Tim Pope
2e67f82b79
Refine handling of pagination via temp buffer
...
Use temp buffer for output of any command for which the Git
configuration option of pager.<command> is true. Avoid using a temp
buffer if the value is false, even for commands like "show" where we
normally would. If the configuration value is present and can't be
interpreted as a Boolean, punt to a :terminal where Git will invoke it
directly.
Generate and use custom config dictionary that includes -c values passed
to :Git. This enables `:Git -c pager.status status` to correctly use a
pager.
Paginate "config", "branch", and "tag" for certain argument lists,
matching the logic found in the Git source code as closely as possible.
These 3 commands were identified as having special pagination logic by
the presence of the DELAY_PAGER_CONFIG flag on their definitions in
git.c.
Paginate "am --show-current-patch".
References https://github.com/tpope/vim-fugitive/issues/1415
2020-02-18 21:00:01 -05:00
Tim Pope
cb1300d751
Deprecate :Gsplit! family in documentation
2020-02-18 20:59:49 -05:00
Tim Pope
d10dc9ea93
Quarantine deprecated commands in documentation
2020-02-18 14:09:24 -05:00
hitsuji no shippo
460664018a
Fix typo --include-index to --keep-index in help
2020-02-05 20:25:34 -05:00
Tim Pope
22255613f7
Replace :Gcommit/:Grevert with standard job runner
2020-01-23 05:52:27 -05:00
Tim Pope
c989c1f59e
Replace :Grebase/:Gmerge/:Gpull with standard job runner
2020-01-23 05:52:27 -05:00
Tim Pope
6b18f7b758
Remove :Gwrite in :Git diff
2020-01-23 05:52:27 -05:00
Tim Pope
8d6f9734c1
Use jobs for :Git
2020-01-23 05:52:27 -05:00
Chris DeLuca
dc6719e7b0
Fix :Gdiffsplit! help typo
2020-01-20 10:27:14 -05:00
Tim Pope
2ebdeef9e0
Change :Git --paginate from :terminal to temp buffer
...
The --paginate option to Git forces it to use $PAGER rather than its own
configuration, so it makes perfect sense for Fugitive to take on the
role of the pager.
This also removes the same behavior for --no-pager, allowing the command
to run with :! instead. I really don't like sudden backwards
incompatible changes like this, but the old behavior was based on a bad
understanding of how these options work, and I'd rather rip the band-aid
off sooner rather than later.
2020-01-20 09:03:49 -05:00
Tim Pope
6bc345f6f1
Map cmt to :Git mergetool
...
References https://github.com/tpope/vim-fugitive/issues/1329
2020-01-10 20:29:58 -05:00
Tim Pope
ddd64fc4c5
Provide :Git difftool and :Git mergetool
...
Closes https://github.com/tpope/vim-fugitive/issues/132
2020-01-05 21:41:18 -05:00
Tim Pope
ff0eeac045
Document disabling global maps
...
References https://github.com/tpope/vim-fugitive/issues/1331
2019-09-05 15:36:56 -04:00
Tim Pope
eb04d8bcc0
Standardize on "maps", not "mappings"
2019-09-05 15:35:42 -04:00
Tim Pope
77a732c97c
Explicitly document :Git subcommands
2019-09-04 15:11:59 -04:00
Tim Pope
64d106dfdd
Remove fugitive- prefix from command help topics
2019-09-04 13:17:20 -04:00
Tim Pope
a45e2c6d57
Provide :Gr as alias for :Gread
2019-09-02 19:58:13 -04:00
Tim Pope
082a9b99e7
Remove double word in docs
2019-09-01 12:56:58 -05:00
Tim Pope
410e17129d
Use :Git not :G for visible maps
...
Let's treat :Git as canonical and :G as the shorthand.
2019-08-22 19:45:20 -05:00
Tim Pope
c63fd1b71b
Support a...b as notation for merge base
...
Closes https://github.com/tpope/vim-fugitive/pull/913
2019-08-19 11:25:39 -04:00
Tim Pope
e768806266
Remove obsolete Git object examples
2019-08-19 11:22:52 -04:00
Tim Pope
c242cb6369
Provide maps to find similar diff lines
2019-08-18 10:53:21 -04:00
Tim Pope
bbd9afe790
Provide map to close diff buffers
2019-08-18 04:58:59 -04:00
Felix Archambault
22e9b26075
doc: prefer https url
2019-08-15 22:59:49 -04:00
Tim Pope
6eb885c017
Always diff against parents in :Gdiffsplit!
2019-08-14 11:06:42 -04:00
Tim Pope
1d2821f91e
Clarify :Gstatus p behavior
...
I've seen a lot of confusion in the wild around this, and the old
behavior is immortalized in the Vimcasts. Lets make this an error while
we regroup.
2019-08-14 01:44:13 -04:00
Tim Pope
53e5e61afa
Emphasize :Glog behavior change
...
Let's go ahead and embrace :Gclog as a warning free version of the
command.
2019-08-14 01:44:13 -04:00
Tim Pope
5defa72b81
Provide count on blob blame maps for --reverse
2019-08-13 21:31:01 -04:00
Tim Pope
c21736dde7
Jump to file not diff for boundary commit in :Gblame
2019-08-13 21:31:01 -04:00
Tim Pope
c0ce201c3b
Remove :Git --paginate from docs
...
I thought the --paginate option was basically the opposite of
--no-pager, but it actually forces the entire command to run through a
pager, breaking a lot of interactive commands. Let's de-emphasize it as
a solution.
2019-08-13 19:44:17 -04:00
Tim Pope
0392f64a93
Make :Gblame a proper subcommand
2019-08-13 15:28:01 -04:00
Tim Pope
4daa0c558c
Support nearly all git-blame flags
2019-08-11 01:17:22 -04:00
Tim Pope
9ca6e0c633
Remove q from :Gblame documentation
2019-08-10 22:24:35 -04:00
Tim Pope
511e32114b
Swap gu and gU
2019-08-06 19:39:26 -04:00
Tim Pope
35d7590354
Provide s/u mappings on commits
...
I need to figure out the big picture push story before I can document
the push maps.
2019-08-06 14:10:38 -04:00
Tim Pope
c4d4986f1e
Delegate :G command to :Gcommand for 8 commands
2019-08-04 00:05:18 -04:00
Tim Pope
81eec879a4
Update :Gstatus description in README
2019-08-03 21:38:28 -04:00
Tim Pope
bd70719f54
Provide :Grevert and :Gmerge mappings
2019-08-03 21:38:28 -04:00
Tim Pope
0f08b0cbbb
Provide separate file/hunk jump maps
2019-08-03 16:27:44 -04:00
Tim Pope
dffa56c4ea
Retool section jump maps
2019-08-03 00:52:08 -04:00
Tim Pope
9ac6a258d6
Fall back to "commit" line for file hunk jump maps
...
This enables jumping from commit to commit in :Git log.
2019-08-02 23:41:57 -04:00
Tim Pope
875a58c2e1
Document :Git --paginate
...
Was planning on keeping this unofficial, but I think we need to provide
an alternative to loading :Git log in a temp file.
2019-08-02 20:21:23 -04:00
Vais Salikhov
5af58f9da1
Fix a typo in the docs
2019-08-02 15:25:40 -04:00
Tim Pope
4c0dbb66eb
Always use temp file for :Git diff and :Git log
...
You can use :Git -p log to get a terminal instead.
2019-08-02 13:31:55 -04:00
Tim Pope
928e1e71e7
Document :Git --no-pager
2019-08-02 02:00:16 -04:00
Tim Pope
665cec73d9
Provide :Grevert
2019-08-01 23:22:10 -04:00
Tim Pope
881d72f1af
Preserve index on cza and czp
2019-07-29 17:16:58 -04:00