mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-13 05:43:53 -05:00
Use "undo" instead of "revert" for discarding a hunk.
"Undo" is a better name than "revert" because: - "revert" sounds like it has something to do with `git-revert` but they are entirely different; - "undo" is consistent with vim's "undo": discarding changes and going back to the original. Maintain backwards compatibility and add deprecation warnings. Closes #306.
This commit is contained in:
@@ -7,7 +7,7 @@ execute 'GitGutterStageHunk'
|
||||
call DumpSigns('hunkOutsideNoopStageSigns')
|
||||
call DumpGitDiffStaged('hunkHunkOutsideNoopStageGitDiffStaged')
|
||||
|
||||
execute 'GitGutterRevertHunk'
|
||||
call DumpSigns('hunkOutsideNoopRevertSigns')
|
||||
call DumpGitDiffStaged('hunkHunkOutsideNoopRevertGitDiffStaged')
|
||||
execute 'GitGutterUndoHunk'
|
||||
call DumpSigns('hunkOutsideNoopUndoSigns')
|
||||
call DumpGitDiffStaged('hunkHunkOutsideNoopUndoGitDiffStaged')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user