-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathdenite-git.txt
More file actions
166 lines (106 loc) · 4.09 KB
/
denite-git.txt
File metadata and controls
166 lines (106 loc) · 4.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
*denite-git.txt* Git log and git status sources for |denite|
Version: 0.4
Author: Qiming Zhao <chemzqm at gmail.com>
License: MIT license
CONTENTS *denite-git-contents*
Introduction |denite-git-introduction|
Install |denite-git-install|
Usage |denite-git-usage|
Actions |denite-git-actions|
gitlog |denite-gitlog-actions|
gitstatus |denite-gitstatus-actions|
gitchanged |denite-gitchanged-actions|
gitbranch |denite-gitbranch-actions|
Changelog |denite-git-changelog|
Feedback |denite-feedback|
==============================================================================
INTRODUCTION *denite-git-introduction*
Denite-git is a vim/neovim plugin for user to easily manage git log, git
status and git changed lines with the help of |denite| interface.
==============================================================================
INSTALL *denite-git-install*
Make sure you have "echo has('python3')" return 1 before useing |denite|.
denite.nvim is required for provide union interface and.
Take [vim-plug](https://github.com/junegunn/vim-plug) for example, add: >
Plug 'Shougo/denite.nvim'
Plug 'neoclide/denite-git'
To your .vimrc and run "PlugInstall" after vim restarted.
Note: |denite-git| requires python >= 3.5.
==============================================================================
USAGE *denite-git-usage*
For gitlog source: >
" git log of current file
Denite gitlog
" all git log of current repository
Denite gitlog:all
" filter gitlog with fix as input
Denite gitlog::fix
For gitstatus source: >
Denite gitstatus
For gitchanged source: >
Denite gitchanged
For gitbranch source: >
Denite gitbranch
Note: denite-git find git root in the directory of vim current working
directory ":echo getcwd()"
==============================================================================
ACTIONS *denite-git-actions*
------------------------------------------------------------------------------
GITLOG ACTIONS *denite-gitlog-actions*
open (default)
Open seleted commit (with current file diff only if not all).
preview
Preview seleted commit in preview window.
delete
Run git diff with current commit(s) for current buffer.
Note: three way diff is possible.
reset
Run git reset command with current commit.
The Kind of |denite-gitlog| is inherited from openable, so all openable
actions are available.
------------------------------------------------------------------------------
GITSTATUS ACTIONS *denite-gitstatus-actions*
open (default)
Open seleted file, default action
add
Run git add for seleted file(s).
delete
Run git diff for seleted file. (just named delete)
reset
Run git reset/checkout or remove for seleted file(s).
A prompt would shown when needed.
Commit
run git commit for seleted file(s).
The Kind of |denite-gitstatus| is inherited from file, so all file
actions are available.
------------------------------------------------------------------------------
GITCHANGED ACTIONS *denite-gitchanged-actions*
open (default)
open seleted line in current buffer.
------------------------------------------------------------------------------
GITBRANCH ACTIONS *denite-gitbranch-actions*
checkout (default)
Checkout seleted branch in current buffer.
delete
Delete seleted branch.
merge
Merge seleted branch.
rebase
Rebase seleted branch with current branch.
==============================================================================
CHANGELOG *denite-git-changelog*
0.4 Jul 19, 2018
- reload buffers after branch action
0.3 Jun 14, 2017
- use diffPreview for diff action of git status
- add aptch action for git status
0.2 Feb 25, 2017
- add gitchanged source
0.1 Feb 24, 2017
- works
==============================================================================
FEEDBACK *denite-git-feedback*
|denite-git| is open sourced at https://github.com/chemzqm/denite-git.
feel free to open a issue when you get any problem.
==============================================================================
vim:tw=78:ts=8:ft=help:norl:noet:fen: