@@ -42,6 +42,10 @@ local cb = require'diffview.config'.diffview_callback
42
42
require ' diffview' .setup {
43
43
diff_binaries = false , -- Show diffs for binaries
44
44
use_icons = true -- Requires nvim-web-devicons
45
+ signs = {
46
+ fold_closed = " " ,
47
+ fold_open = " " ,
48
+ },
45
49
file_panel = {
46
50
position = " left" , -- One of 'left', 'right', 'top', 'bottom'
47
51
width = 35 , -- Only applies when position is 'left' or 'right'
@@ -139,7 +143,8 @@ rather than the file under the cursor in the file panel.
139
143
![ file-history-multi] ( https://user-images.githubusercontent.com/2786478/131269782-f4184640-6d73-4226-b425-feccb5002dd0.png )
140
144
141
145
The file history view allows you to list all the commits that changed a given
142
- file or directory, and view the changes made in a diff split.
146
+ file or directory, and view the changes made in a diff split. Open a file
147
+ history view for your current file by calling ` :DiffviewFileHistory ` .
143
148
144
149
## Usage
145
150
@@ -154,6 +159,7 @@ for that rev. Examples:
154
159
- ` :DiffviewOpen HEAD~4..HEAD~2 `
155
160
- ` :DiffviewOpen d4a7b0d `
156
161
- ` :DiffviewOpen d4a7b0d..519b30e `
162
+ - ` :DiffviewOpen origin/main...HEAD `
157
163
158
164
You can also provide additional paths to narrow down what files are shown:
159
165
@@ -176,7 +182,9 @@ files with `<tab>` and `<s-tab>` (see configuration to change the key bindings).
176
182
177
183
Opens a new file history view that lists all commits that changed a given file
178
184
or directory. If no ` [paths] ` are given, defaults to the current file. Multiple
179
- ` [paths] ` may be provided.
185
+ ` [paths] ` may be provided. If you want to view the file history for all changed
186
+ files for every commit, simply call ` :DiffviewFileHistory . ` (assuming your cwd
187
+ is the top level of the git repository).
180
188
181
189
## Tips
182
190
0 commit comments