git-delta 0.23.0__py3-none-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
@@ -0,0 +1,379 @@
1
+ Metadata-Version: 2.4
2
+ Name: git-delta
3
+ Version: 0.23.0
4
+ Classifier: Environment :: Console
5
+ Classifier: Programming Language :: Rust
6
+ Classifier: Topic :: Software Development :: Version Control :: Git
7
+ License-File: LICENSE
8
+ Summary: A syntax-highlighting pager for git, diff, grep, and blame output
9
+ Home-Page: https://github.com/dandavison/delta
10
+ Author-email: Dan Davison <dandavison7@gmail.com>
11
+ License-Expression: MIT
12
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
13
+ Project-URL: Documentation, https://dandavison.github.io/delta/
14
+ Project-URL: Homepage, https://github.com/dandavison/delta
15
+ Project-URL: Repository, https://github.com/dandavison/delta
16
+
17
+ <p align="center">
18
+ <img width=400px src="https://user-images.githubusercontent.com/52205/147996902-9829bd3f-cd33-466e-833e-49a6f3ebd623.png" alt="image" />
19
+ </p>
20
+ <p align="center">
21
+ <a href="https://github.com/dandavison/delta/actions">
22
+ <img src="https://github.com/dandavison/delta/actions/workflows/ci.yml/badge.svg?branch=main" alt="CI">
23
+ </a>
24
+ <a href="https://coveralls.io/github/dandavison/delta?branch=main">
25
+ <img src="https://coveralls.io/repos/github/dandavison/delta/badge.svg?branch=main" alt="Coverage Status">
26
+ </a>
27
+ <a href="https://gitter.im/dandavison-delta/community?utm_source=badge&amp;utm_medium=badge&amp;utm_campaign=pr-badge">
28
+ <img src="https://badges.gitter.im/dandavison-delta/community.svg" alt="Gitter">
29
+ </a>
30
+ </p>
31
+
32
+ ## Get Started
33
+
34
+ [Install it](https://dandavison.github.io/delta/installation.html) (the package is called
35
+ "git-delta" in most package managers, but the executable is just `delta`) and add this to your
36
+ `~/.gitconfig`:
37
+
38
+ ```gitconfig
39
+ [core]
40
+ pager = delta
41
+
42
+ [interactive]
43
+ diffFilter = delta --color-only
44
+
45
+ [delta]
46
+ navigate = true # use n and N to move between diff sections
47
+ dark = true # or light = true, or omit for auto-detection
48
+
49
+ [merge]
50
+ conflictStyle = zdiff3
51
+ ```
52
+
53
+ <details>
54
+ <summary>Commands to write the config</summary>
55
+
56
+ ```sh
57
+ git config --global core.pager delta
58
+ git config --global interactive.diffFilter 'delta --color-only'
59
+ git config --global delta.navigate true
60
+ git config --global delta.dark true # or `delta.light true`, or omit for auto-detection
61
+ git config --global merge.conflictStyle zdiff3
62
+ ```
63
+
64
+ </details>
65
+
66
+
67
+ Alternatively, delta can be used as a TUI based on [gitu](https://github.com/altsem/gitu), with many
68
+ keybindings for exploring `git diff`, `git show`, and `git log` views, the ability to stage directly
69
+ from delta-rendered diffs (including side-by-side), reorder and fixup commits in your native log
70
+ view, and all of gitu's other git operations (commit, push, pull, rebase, etc). This is a much more
71
+ powerful way to use delta:
72
+
73
+ ```gitconfig
74
+ [pager]
75
+ diff = delta --tui
76
+ show = delta --tui
77
+ log = delta --tui
78
+ ```
79
+
80
+ See [below](#tui-mode) for videos.
81
+
82
+ <details>
83
+ <summary>A complete tui config with ideas for making it look nice</summary>
84
+
85
+ ```gitconfig
86
+ [pager]
87
+ diff = delta --tui
88
+ show = delta --tui
89
+ log = delta --tui
90
+
91
+ # Everything below is optional: suggestions to show what is available.
92
+
93
+ [pretty]
94
+ commit-format = tformat:%n%n▸ %h %C(blue)%an %C(blue)%ar%C(auto)%d%C(reset)%n%n %C(green)%s%C(auto)
95
+ commit-format-full = tformat:%n%n▸ %h %C(blue)%an %C(blue)%ar%C(auto)%d%C(reset)%n%n%w(0,4,4)%C(green)%s%C(reset)%n%+b
96
+
97
+ [delta]
98
+ # Must match the first line of the [pretty] formats above, so that each
99
+ # commit is one cursor stop.
100
+ commit-regex = ^(▸|commit )
101
+ commit-decoration-style = blue ol
102
+ # Styles go in a feature rather than here, so that themes (`T`) can
103
+ # override them.
104
+ features = my-theme
105
+
106
+ # The TUI's own settings. delta itself does not use them.
107
+ # Arguments of the git log and git show that the TUI runs itself
108
+ # (`l l`, `right` on a commit).
109
+ log-args = --stat
110
+ log-args = --date=relative
111
+ log-args = --pretty=commit-format
112
+ show-args = --pretty=commit-format-full
113
+ # Head each file with its `git diff --stat` row.
114
+ file-header = stat
115
+ # Open every patch with its files folded.
116
+ start-folded = true
117
+ # A view of your own; use H to bind features, views, and commands to keys.
118
+ view = ignore-whitespace {command} -w
119
+
120
+ [delta "my-theme"]
121
+ file-decoration-style = magenta ul
122
+ file-added-label = •
123
+ file-modified-label = •
124
+ file-removed-label = •
125
+ file-renamed-label = •
126
+
127
+ # delta's collection of themes, for `T` to step through:
128
+ # [include]
129
+ # path = /path/to/delta/themes.gitconfig
130
+ ```
131
+
132
+ </details>
133
+
134
+
135
+ Delta has many features and is very customizable; please see `delta -h` (short help) or `delta
136
+ --help` (full manual), or the [online user manual](https://dandavison.github.io/delta/).
137
+
138
+ ## Features
139
+
140
+ - Interactive TUI (`--tui`)
141
+ - Language syntax highlighting
142
+ - Word-level diff highlighting
143
+ - Side-by-side view with line-wrapping
144
+ - Line numbering
145
+ - `n` and `N` keybindings to move between files in large diffs, and between diffs in `log -p` views (`--navigate`)
146
+ - Improved merge conflict display
147
+ - Improved `git blame` display (syntax highlighting; `--hyperlinks` formats commits as links to hosting provider etc. Supported hosting providers are: GitHub, GitLab, SourceHut, Codeberg)
148
+ - Syntax-highlights grep output from `rg --json`, `rg`, `git grep`, `grep`, etc
149
+ - Support for Git's `--color-moved` feature.
150
+ - Code can be copied directly from the diff (`-/+` markers are removed by default).
151
+ - `diff-highlight` and `diff-so-fancy` emulation modes
152
+ - Commit hashes can be formatted as terminal [hyperlinks](https://gist.github.com/egmontkob/eb114294efbcd5adb1944c9f3cb5feda) to the hosting provider page (`--hyperlinks`).
153
+ File paths can also be formatted as hyperlinks for opening in your OS.
154
+ - Stylable box/line decorations to draw attention to commit, file and hunk header sections.
155
+ - Style strings (foreground color, background color, font attributes) are supported for >20 stylable elements, using the same color/style language as git
156
+ - Handles traditional unified diff output in addition to git output
157
+ - Automatic detection of light/dark terminal background
158
+
159
+ ## A syntax-highlighting pager for git, diff, and grep output
160
+
161
+ Code evolves, and we all spend time studying diffs. Delta aims to make this both efficient and
162
+ enjoyable: it allows you to make extensive changes to the layout and styling of diffs, as well as
163
+ allowing you to stay arbitrarily close to the default git/diff output.
164
+
165
+ <table align="center">
166
+ <tr>
167
+ <td>
168
+ <img width=400px src="https://user-images.githubusercontent.com/52205/86275526-76792100-bba1-11ea-9e78-6be9baa80b29.png" alt="image" />
169
+ <br>
170
+ <p align="center"><sub>delta with <code>line-numbers</code> activated</sub></p>
171
+ </td>
172
+ </tr>
173
+ </table>
174
+
175
+ <table align="center">
176
+ <tr>
177
+ <td>
178
+ <img width=800px src="https://user-images.githubusercontent.com/52205/87230973-412eb900-c381-11ea-8aec-cc200290bd1b.png" alt="image" />
179
+ <br>
180
+ <p align="center"><sub>delta with <code>side-by-side</code> and <code>line-numbers</code> activated</sub></p>
181
+ </td>
182
+ </tr>
183
+ </table>
184
+
185
+ Here's what `git show` can look like with git configured to use delta:
186
+
187
+ <br>
188
+
189
+ <table align="center">
190
+ <tr>
191
+ <td>
192
+ <img width=500px style="border: 1px solid black"
193
+ src="https://user-images.githubusercontent.com/52205/81058545-a5725f80-8e9c-11ea-912e-d21954586a44.png"
194
+ alt="image" />
195
+ </td>
196
+ <td>
197
+ <img width=500px style="border: 1px solid black"
198
+ src="https://user-images.githubusercontent.com/52205/81058911-6abcf700-8e9d-11ea-93be-e212824ec03d.png"
199
+ alt="image" />
200
+ </td>
201
+ </tr>
202
+ <tr>
203
+ <td>
204
+ "Dracula" theme
205
+ </td>
206
+ <td>
207
+ "GitHub" theme
208
+ </td>
209
+ </tr>
210
+ </table>
211
+
212
+ <br>
213
+ <br>
214
+
215
+ ### Syntax-highlighting themes
216
+
217
+ **All the syntax-highlighting color themes that are available with [bat](https://github.com/sharkdp/bat/) are available with delta:**
218
+
219
+ <br>
220
+ <table>
221
+ <tr>
222
+ <td>
223
+ <img width=400px style="border: 1px solid black"
224
+ src="https://user-images.githubusercontent.com/52205/149431273-e3ad049d-771e-4186-869d-0e57967958a6.png"
225
+ alt="image" />
226
+ </td>
227
+ <td>
228
+ <img width=400px style="border: 1px solid black"
229
+ src="https://user-images.githubusercontent.com/52205/149431419-48836001-2afc-4fd0-97ad-561a69b71db7.png"
230
+ alt="image" />
231
+ </td>
232
+ </tr>
233
+ <tr>
234
+ <td>
235
+ <code>delta --show-syntax-themes --dark</code>
236
+ </td>
237
+ <td>
238
+ <code>delta --show-syntax-themes --light</code>
239
+ </td>
240
+ </tr>
241
+ </table>
242
+
243
+ <br>
244
+
245
+ ### Side-by-side view
246
+
247
+ [[User manual](https://dandavison.github.io/delta/side-by-side-view.html)]
248
+
249
+ ```gitconfig
250
+ [delta]
251
+ side-by-side = true
252
+ ```
253
+
254
+ By default, side-by-side view has line-numbers activated, and has syntax highlighting in both the left and right panels: [[config](#side-by-side-view-1)]
255
+
256
+ <table><tr><td><img width=800px src="https://user-images.githubusercontent.com/52205/87230973-412eb900-c381-11ea-8aec-cc200290bd1b.png" alt="image" /></td></tr></table>
257
+
258
+ Side-by-side view wraps long lines automatically:
259
+
260
+ <table><tr><td><img width=600px src="https://user-images.githubusercontent.com/52205/139064537-f8479504-16d3-429a-b4f6-d0122438adaa.png" alt="image" /></td></tr></table>
261
+
262
+ ### Line numbers
263
+
264
+ [[User manual](https://dandavison.github.io/delta/line-numbers.html)]
265
+
266
+ ```gitconfig
267
+ [delta]
268
+ line-numbers = true
269
+ ```
270
+
271
+ <table><tr><td><img width=400px src="https://user-images.githubusercontent.com/52205/86275526-76792100-bba1-11ea-9e78-6be9baa80b29.png" alt="image" /></td></tr></table>
272
+
273
+ ### Merge conflicts
274
+
275
+ [[User manual](https://dandavison.github.io/delta/merge-conflicts.html)]
276
+
277
+ <table><tr><td><img width=500px src="https://user-images.githubusercontent.com/52205/144783121-bb549100-69d8-41b8-ac62-1704f1f7b43e.png" alt="image" /></td></tr></table>
278
+
279
+ ### Git blame
280
+
281
+ [[User manual](https://dandavison.github.io/delta/git-blame.html)]
282
+
283
+ <table><tr><td><img width=600px src="https://user-images.githubusercontent.com/52205/141891376-1fdb87dc-1d9c-4ad6-9d72-eeb19a8aeb0b.png" alt="image" /></td></tr></table>
284
+
285
+ ### Ripgrep, git grep
286
+
287
+ [[User manual](https://dandavison.github.io/delta/grep.html)]
288
+
289
+ <table><tr><td>
290
+ <img width="600px" alt="image" src="https://github.com/dandavison/open-in-editor/assets/52205/d203d380-5acb-4296-aeb9-e38c73d6c27f">
291
+ </td></tr></table>
292
+
293
+ ### TUI mode
294
+
295
+ [[User manual](https://dandavison.github.io/delta/tui.html)]
296
+
297
+ `delta --tui` is an interactive git client and pager that renders with delta: navigate, fold, stage
298
+ and discard in delta's output. It is based on [gitu](https://github.com/altsem/gitu) by altsem, a
299
+ git client inspired by Magit, and is embedded via a [fork](https://github.com/dandavison/gitu).
300
+
301
+
302
+ ### git diff
303
+ Folding files, side-by-side, color themes, line numbers.
304
+
305
+ https://github.com/user-attachments/assets/8fc87bdd-ddca-4465-acd2-c1b8682b66f3
306
+
307
+ ### Changing what git diff shows
308
+ Context lines, editing the git command, hiding files, whole functions, `gh pr diff`.
309
+
310
+ https://github.com/user-attachments/assets/3979530a-53f0-4f22-ace5-742a73963eda
311
+
312
+ ### git log
313
+ Searching, opening a commit, interactive rebase, `git log -p`.
314
+
315
+ https://github.com/user-attachments/assets/b0886f1c-17bb-4a7b-a220-af067155ae19
316
+
317
+ ### Staging and committing
318
+ Staging files, hunks and lines; committing and amending.
319
+
320
+ https://github.com/user-attachments/assets/c5a4ba44-52b7-4b60-9cc2-82dbb4c471f1
321
+
322
+ ### More features
323
+ Help, toggling delta features such as +/- markers, blame, filtering files.
324
+
325
+ https://github.com/user-attachments/assets/caad6b67-1988-4171-b45a-66c4bc990d24
326
+
327
+ ### Your own views
328
+ git commands of your own, opened from keys, with the commit or file under the cursor.
329
+
330
+ https://github.com/user-attachments/assets/b0a33a5c-90c1-436e-8377-4dca761425a8
331
+
332
+ <details>
333
+ <summary><h2>Light-mode videos</h2></summary>
334
+
335
+
336
+ ### git diff
337
+ Folding files, side-by-side, color themes, line numbers.
338
+
339
+ https://github.com/user-attachments/assets/4818f448-5d5e-4cf3-88c9-ce3617c40773
340
+
341
+ ### Changing what git diff shows
342
+ Context lines, editing the git command, hiding files, whole functions, `gh pr diff`.
343
+
344
+ https://github.com/user-attachments/assets/b7399ee7-5c40-43ed-b7a4-aa6bbf0e4a3e
345
+
346
+ ### git log
347
+ Searching, opening a commit, interactive rebase, `git log -p`.
348
+
349
+ https://github.com/user-attachments/assets/550c0ce8-be3f-4b76-a4e6-fac835f126ca
350
+
351
+ ### Staging and committing
352
+ Staging files, hunks and lines; committing and amending.
353
+
354
+ https://github.com/user-attachments/assets/3f9d573a-f788-475d-8177-92c69047fe35
355
+
356
+ ### More features
357
+ Help, toggling delta features such as +/- markers, blame, filtering files.
358
+
359
+ https://github.com/user-attachments/assets/503c0608-a656-4e3c-b9d8-a32ec92b177a
360
+
361
+ ### Your own views
362
+ git commands of your own, opened from keys, with the commit or file under the cursor.
363
+
364
+ https://github.com/user-attachments/assets/25c31545-32ac-4442-997a-11fbaf051aee
365
+
366
+ </details>
367
+
368
+
369
+ ### Installation and usage
370
+
371
+ Please see the [user manual](https://dandavison.github.io/delta/) and `delta --help`.
372
+
373
+ [![Live demo by Demoshell](https://build.demoshell.com/v1/embed/badge.svg)](https://build.demoshell.com/launch?snapshot=demoshell%2Ftui%3Adelta)
374
+
375
+ ### Maintainers
376
+
377
+ - [@dandavison](https://github.com/dandavison)
378
+ - [@th1000s](https://github.com/th1000s)
379
+
@@ -0,0 +1,6 @@
1
+ git_delta-0.23.0.data/scripts/delta.exe,sha256=PbOmpRWBLfLt99nrJQUDg0ifkcyh4kXX6OwJ36h9fWQ,13148160
2
+ git_delta-0.23.0.dist-info/METADATA,sha256=4c93I4LSyWxJ40OzQeDKR60pleOGZH3TLYwBJPNzeho,13537
3
+ git_delta-0.23.0.dist-info/WHEEL,sha256=Uvw7WSmy7Kj2FBk8Va4L_dq4MDW8X5Ynby-pOX3ZNS0,94
4
+ git_delta-0.23.0.dist-info/licenses/LICENSE,sha256=22InIyc4G5JVd_1ZFBj4iixuhFmANDo9FaVNKzBdeUI,1058
5
+ git_delta-0.23.0.dist-info/sboms/git-delta.cyclonedx.json,sha256=71MJG5GUcCbEjw9OJJMH6e-w5dUMxfJhN1BXXTNkkxY,309873
6
+ git_delta-0.23.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.16.0)
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-win_amd64
@@ -0,0 +1,7 @@
1
+ Copyright 2020 Dan Davison
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.