blob: 36e295ad2cde650d80da6393f2f6d77fcf8a01c4 (
plain)
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
|
<a href="https://github.com/mgalgs/diffview-mode"><img src="https://www.gnu.org/software/emacs/images/emacs.png" alt="Emacs Logo" width="80" height="80" align="right"></a>
## diffview.el
*View diffs in side-by-side format*
---
[](http://www.gnu.org/licenses/gpl-3.0.html)
[](http://melpa.org/#/diffview)
[](http://stable.melpa.org/#/diffview)
Render a unified diff (top/bottom) in an easy-to-comprehend side-by-side
format. This comes in handy for reading patches from mailing lists (or
from whencever you might acquire them).
### Installation
M-x package-install diffview
### Usage
The following functions are provided for launching a side-by-side diff:
* `diffview-current` : View the current diff buffer side-by-side
* `diffview-region` : View the current diff region side-by-side
* `diffview-message` : View the current email message (which presumably
contains a patch) side-by-side
### Keybindings
* `}` : Next file
* `{` : Previous file
* `l` : Align windows
* `q` : Quit
### Screenshots
Before:
<img src="https://raw.github.com/mgalgs/diffview-mode/master/screenshots/diffview-before.png">
After:
<img src="https://raw.github.com/mgalgs/diffview-mode/master/screenshots/diffview-after.png">
### Function and Macro Documentation
#### `(diffview-current)`
Show current diff buffer in a side-by-side view.
#### `(diffview-region)`
Show current diff region in a side-by-side view.
#### `(diffview-message)`
Show `message-mode` buffer in a side-by-side view.
This is useful for reading patches from mailing lists.
-----
<div style="padding-top:15px;color: #d0d0d0;">
Markdown README file generated by
<a href="https://github.com/mgalgs/make-readme-markdown">make-readme-markdown.el</a>
</div>
|