Tim Pope
0db4ceb980
Restore press enter prompt in :Ggrep in GUI
2019-08-07 19:31:35 -04:00
Tim Pope
95c1f1525d
Fix accidental utility invocation on :Git complete
2019-08-07 18:12:07 -04:00
Tim Pope
cfca94c723
Expand simple aliases in :Git
...
This lets you alias ca = `git commit -a` and have `:Git ca` call
`:Gcommit -a`.
2019-08-07 17:31:14 -04:00
Tim Pope
edae34e02f
Fix count with jump to commit section
2019-08-07 00:52:38 -04:00
Tim Pope
d7172882b7
Add default core.askPass to :Gpull
2019-08-06 20:01:18 -04:00
Tim Pope
511e32114b
Swap gu and gU
2019-08-06 19:39:26 -04:00
Tim Pope
0cc3beeae9
Tweak commit for u rebase map
2019-08-06 14:32:39 -04:00
Tim Pope
0484c03c6b
Allow :Grevert --abort/continue/quit
2019-08-06 14:10:45 -04:00
Tim Pope
9d77fd566c
Add Git dir presence guard to all commands
...
This isn't necessary for the current implementation, but could enable
making the commands (or at least the underlying commands) global.
2019-08-06 14:10:45 -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
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
35cf80dd3b
Fix :Gbrowse with range and blame.coloring enabled
2019-08-03 16:27:03 -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
e5a6a8c525
Support jump maps in visual mode
2019-08-02 20:21:23 -04:00
Tim Pope
3f417d7ad1
Enable fixup/squash maps in :Git log
2019-08-02 20:21:23 -04:00
Tim Pope
2b757e87d5
Disable modelines in temp files
2019-08-02 20:21:23 -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
9118ed27c3
Add -addr= declarations
2019-08-02 13:26:18 -04:00
Tim Pope
291cf5d1bc
:0Ggrep calls :Glgrep
2019-08-02 13:17:08 -04:00
Tim Pope
b9c47cec52
Add command dispatcher
...
This will enable cleaning up some of the repetition in argument and
exception handling
2019-08-02 01:45:33 -04:00
Tim Pope
21991bcbaf
Eliminate redundant :G and :Git implementations
2019-08-02 01:09:20 -04:00
Tim Pope
665cec73d9
Provide :Grevert
2019-08-01 23:22:10 -04:00
Tim Pope
0ab2d9709c
Preserve cursor position after staging last untracked file
2019-08-01 19:27:41 -04:00
Tim Pope
7df9f07e1f
Compensate for blame.coloring
...
Closes https://github.com/tpope/vim-fugitive/issues/1301
2019-08-01 12:46:45 -04:00
Tim Pope
fb3c603ce6
Always use temp file for :Git --no-pager
2019-08-01 12:46:09 -04:00
Tim Pope
44ade58ed5
Always use :terminal for :Git --paginate
...
References https://github.com/tpope/vim-fugitive/issues/1294
2019-07-30 13:05:16 -04:00
Tim Pope
881d72f1af
Preserve index on cza and czp
2019-07-29 17:16:58 -04:00
Tim Pope
f3dde245b3
Map I to :Git add --intent-to-add
2019-07-29 17:16:58 -04:00
Tim Pope
a3ab24f681
Fire synthetic QuickFix events on :Ggrep
...
References https://github.com/tpope/vim-fugitive/issues/1297
2019-07-29 13:23:59 -04:00
Tim Pope
bd89fd440b
Fix error message for rev-parse
2019-07-29 00:48:57 -04:00
Tim Pope
3c4ad5ff72
Avoid unnecessary diffing in :Gstatus
2019-07-28 21:50:49 -04:00
Tim Pope
fff24e29e6
Add czA and czP aliases for cza and czp
...
One set of these will get --index. I'll decide which later.
2019-07-28 21:50:49 -04:00
Tim Pope
0810dcc805
Fix typo
2019-07-28 20:42:37 -04:00
Tim Pope
3b0f68180f
Compensate for bad 'shellredir'
2019-07-28 19:21:01 -04:00
Tim Pope
49f3f92fd5
Guard against inadvertent :| invocation
...
I haven't been able to consistently reproduce it, but sometimes vim
takes :edit +CmdA\|CmdB to mean :CmdA followed by :| and not :CmdA
followed by :CmdB.
2019-07-28 19:16:28 -04:00
Tim Pope
645406f592
Use :Gdiffsplit! for diff maps
...
This opens a 3 way diff for merges and also focuses the more useful
window.
2019-07-28 01:20:38 -04:00
Tim Pope
7bfce97480
Provide misc :Git mappings
2019-07-28 01:12:33 -04:00
Tim Pope
3e9ef9349d
Remove error guards for old object syntax
2019-07-28 01:10:37 -04:00
Tim Pope
881ad1ed0b
Guard against missing output on :Gcommit success
2019-07-26 21:56:39 -04:00
Tim Pope
ebc3f35575
Require bang to :Gwrite from index
...
Closes https://github.com/tpope/vim-fugitive/issues/1057
2019-07-26 11:32:24 -04:00
Tim Pope
79566b5ddd
Don't override alt buffer on :Gwrite from index
2019-07-26 11:32:24 -04:00
Tim Pope
d90e912e46
Provide ignoring maps
...
Closes https://github.com/tpope/vim-fugitive/issues/235
2019-07-24 21:27:16 -04:00
Tim Pope
2bfb6e9889
Reverse inline diff mappings
...
References https://github.com/tpope/vim-fugitive/issues/1199
2019-07-24 21:27:16 -04:00
Tim Pope
b92de0138d
Provide rudimentary stash mappings
2019-07-23 20:44:25 -04:00
Tim Pope
d95cc5f8c2
Remove :Gedit HEAD and :Gedit refs/... special cases
2019-07-23 20:44:25 -04:00
Tim Pope
55cb58cd5f
Add :Git add --intent-to-add to :Gstatus P
2019-07-23 20:44:24 -04:00
Tim Pope
ce283cbdbf
Remove i special behavior on section heading
2019-07-23 20:10:48 -04:00
Tim Pope
994d1b518f
Remove --intend-to-add from :Gstatus i
...
You can't actually apply a hunk to a file added with --intend-to-add, so
this did not pair well with the hunk expansion behavior.
2019-07-23 19:37:06 -04:00
Tim Pope
d88a0f8465
Fix :Gstatus X in visual patch selection
2019-07-23 19:24:07 -04:00
Tim Pope
54bc4ab9dd
Improve error handling on :Gstatus X
2019-07-23 18:29:13 -04:00
Tim Pope
15df3f8959
Do what the user means for LANG= in g:fugitive_git_executable
2019-07-23 15:13:28 -04:00
Tim Pope
1fe6202848
Fix :Gbrowse assuming range
2019-07-22 15:20:21 -04:00
Tim Pope
a152894a55
Don't rely on exception message for :Gbrowse - error
2019-07-22 14:34:46 -04:00
Tim Pope
8a693fb7bc
Restore :Gdiffsplit :n
2019-07-22 14:34:45 -04:00
Tim Pope
80996c2e2c
Map c? and r? to show commit and rebase help
2019-07-21 15:27:21 -04:00
Tim Pope
238a5d8aaf
Map U as :Git reset -q
2019-07-21 15:27:20 -04:00
Tim Pope
76bd7d6cb4
Map gr to jump to rebasing section
2019-07-21 15:26:58 -04:00
Tim Pope
ac97fa3781
Use terminal for :Git fetch/pull/push
...
I consider :Gfetch, etc, the proper interface, but allow this as a
backdoor.
References https://github.com/tpope/vim-fugitive/issues/1292
2019-07-21 15:26:47 -04:00
Tim Pope
6e2310a154
:Gstatus called from status window forces reload
2019-07-20 23:36:42 -04:00
Tim Pope
387cb5c2a0
Clean up error reporting on :Gwrite in diff
2019-07-20 23:36:42 -04:00
Tim Pope
8d584c199a
Fix escaping for :Ggrep '#'
2019-07-20 23:36:42 -04:00
Tim Pope
adba9c6345
Provide core.askPass default
...
Closes https://github.com/tpope/vim-fugitive/issues/722
2019-07-18 16:23:01 -04:00
Tim Pope
b0de6c2811
Fix :0Glog another/path
2019-07-18 14:18:09 -04:00
Tim Pope
e25a214f78
Add an error about LANG= in g:fugitive_git_executable
2019-07-18 11:12:03 -04:00
Tim Pope
ea26a94bde
Consistently position cursor on :Gstatus
2019-07-18 11:12:03 -04:00
Tim Pope
3d305c75a0
Don't print current line on :G|chainedcommand
2019-07-18 11:12:03 -04:00
Tim Pope
68b999bfd0
Remove <C-W>C map
...
It's not worth claiming a whole map just to save one key press.
2019-07-18 11:12:03 -04:00
ganziqim
58b2b85c9e
Only check bdelete mapping in normal mode
2019-07-18 09:44:14 -04:00
Tim Pope
07661dc102
Provide additional commit maps
2019-07-16 16:36:58 -04:00
Tim Pope
2992275d8e
Don't load first quickfix result into status buffer
2019-07-16 16:36:58 -04:00
Tim Pope
d8acfc35c7
Clarify in error message that :Gbrowse handlers are user installed
2019-07-16 16:36:58 -04:00
Tim Pope
0ee0498b88
Filter out warning on :Gedit master@{2.years.ago}
2019-07-16 16:00:09 -04:00
Tim Pope
469a73f3d9
Speed up :Ggrep
2019-07-15 22:41:51 -04:00
Tim Pope
a1b78969f5
Decouple :Glog from :grep
...
One step closer to asynchronous job support.
2019-07-15 22:41:51 -04:00
Tim Pope
158ffdbb14
Extract function to create titled quickfix list
2019-07-15 22:41:51 -04:00
Tim Pope
f83072703b
Remove debugging variable
2019-07-15 22:41:35 -04:00
Tim Pope
4c650c699d
Don't require shell quoting for colons
...
References https://github.com/tpope/vim-fugitive/issues/1289
2019-07-15 15:35:02 -04:00
Tim Pope
dafb994c92
Remove unused function
2019-07-14 14:29:26 -04:00
Tim Pope
8c80cb63e2
Fix E211 handling in :Gmerge/:Grebase
2019-07-14 14:29:26 -04:00
Tim Pope
dbdc947533
Fix <CR> as :Gblame map
2019-07-14 14:29:26 -04:00
Tim Pope
4da9fb8f43
Guard against empty filename checking for conflicts
...
Closes https://github.com/tpope/vim-fugitive/issues/1287
2019-07-13 07:50:11 -04:00
Tim Pope
0c259e3016
Tighten up autowrite handling
2019-07-13 07:50:11 -04:00
Tim Pope
d0049b4417
Support double quotes for all subcommand wrappers
2019-07-12 09:20:13 -04:00
Tim Pope
e169595314
Fix finishing :Gcommit on :wqa
...
This was added to compensate for the implicit autowrite we lost when
switching from :! to system(), but it seems calling in the
VimLeavePre/BufLeave event prevents the commit from happening on exit.
I don't fully understand it but it's easy to prevent.
Closes https://github.com/tpope/vim-fugitive/issues/1285
2019-07-12 09:20:13 -04:00
Tim Pope
a1a40c360d
Provide :Gclog and :Gcgrep aliases
...
The distant future might hold a :Glog command that isn't bound by the
limitations of the quickfix list, so introduce an alias for the quickfix
variant to retire to.
:Gcgrep is a weird name since it directly maps to :grep, but provide it
anyways for symmetry.
2019-07-11 17:34:25 -04:00
Tim Pope
e250f9730e
Fix :Gblame on win32
...
Closes https://github.com/tpope/vim-fugitive/issues/1284
2019-07-11 17:34:25 -04:00
Tim Pope
c33d7fcb9f
Show stderr on :Gcommit
...
References https://github.com/tpope/vim-fugitive/pull/1115
2019-07-11 12:32:35 -04:00
Tim Pope
d176cca5ae
Don't include trailing newline in fugitive#GitVersion()
2019-07-11 12:32:35 -04:00
Tim Pope
aa68223376
More helpful error on Git without -C
...
Closes https://github.com/tpope/vim-fugitive/issues/1283
2019-07-11 07:56:28 -04:00
Tim Pope
bdf5a221fb
Use standard argument handling for :Gfetch/:Gpush
2019-07-10 14:51:56 -04:00
Tim Pope
fd48cde3b7
Fix escaping when :Grebase calls :Gcommit
2019-07-10 14:51:56 -04:00
Tim Pope
0a758c22b3
Retool :Ggrep
2019-07-10 08:22:49 -04:00
Tim Pope
bb05732d7f
Begin phasing out <line2>
2019-07-10 08:22:49 -04:00
Tim Pope
de3f6d977c
Fix commands on Vim without <mods>
...
Closes https://github.com/tpope/vim-fugitive/issues/1282
2019-07-09 19:26:44 -04:00
Tim Pope
5f9602e12f
Also support :G command commit:./path
2019-07-09 13:30:07 -04:00
Tim Pope
9afa926a23
Fix subcommand completion to match :Git completion
2019-07-09 13:30:07 -04:00
Tim Pope
23138572f4
Fix :[range]Glog
...
Closes https://github.com/tpope/vim-fugitive/issues/1280
2019-07-09 13:30:07 -04:00