Debian Codegraph @

testdata/git-log-n3-p.riff-output

raw
1 commit 62da46c7b300321119d399bdc69bfb2d56d5da57 (HEAD -> johan/git-log-p-headings, tag: 2.21.0, origin/master, origin/HEAD, master)
2 Author: Johan Walles <[email protected]>
3 Date: Mon Oct 24 00:32:27 2022 +0200
4
5 Bump version number to 2.21.0
6
7 diff --git xxCargo.lock xxCargo.lock
8 index 860dfcd..ac98582 100644
9 --- xxCargo.lock
10 +++ xxCargo.lock
11 @@ -357,7 +357,7 @@ dependencies = [
12
13 [[package]]
14 name = "riffdiff"
15 -version = "2.20.0"
16 +version = "2.21.0"
17 dependencies = [
18 "backtrace",
19 "bytecount",
20 diff --git xxCargo.toml xxCargo.toml
21 index a9ed33a..6ac6ddc 100644
22 --- xxCargo.toml
23 +++ xxCargo.toml
24 @@ -2,7 +2,7 @@
25
26 [package]
27 name = "riffdiff" # Actually "riff", but that was already taken on crates.io
28 -version = "2.20.0"
29 +version = "2.21.0"
30 authors = ["Johan Walles <[email protected]>"]
31 edition = "2018"
32 repository = "https://github.com/walles/riff/"
33
34 commit 700b5b5d609c34b2cd8f99a3dd81f9784ae17cac
35 Author: Johan Walles <[email protected]>
36 Date: Mon Oct 24 00:30:53 2022 +0200
37
38 Update the screenshot
39
40 "commit" line is now highlighted in yellow.
41
42 diff --git xxscreenshot.png xxscreenshot.png
43 index 25ab17b..c7385d0 100644
44 Binary files xxscreenshot.png and xxscreenshot.png differ
45
46 commit 8923ac0d11a3569d28786bd6da725869953f5fcb
47 Author: Johan Walles <[email protected]>
48 Date: Mon Oct 24 00:26:59 2022 +0200
49
50 Fix trailing parenthesis coloring
51
52 diff --git xsrc/commit_line.rs xsrc/commit_line.rs
53 index 034b97e..7bcbf6b 100644
54 --- xsrc/commit_line.rs
55 +++ xsrc/commit_line.rs
56 @@ -26,13 +26,14 @@ pub fn format_commit_line(line: &str) -> String {
57
58 let comma = format!("{}, {}", YELLOW, NORMAL);
59 return format!(
60 - "{}{} ({}){}",
61 + "{}{} ({}{}){}",
62 YELLOW,
63 commit_part,
64 parenthesis_parts
65 .iter()
66 .map(|part| format_commit_part(part, &current_branch))
67 .join(&comma),
68 + YELLOW,
69 NORMAL
70 );
71 }
72 diff --git xtestdata/git-commit-line.riff-output xtestdata/git-commit-line.riff-output
73 index 0b42b6d..5edede3 100644
74 --- xtestdata/git-commit-line.riff-output
75 +++ xtestdata/git-commit-line.riff-output
76 @@ -1,3 +1,3 @@
77 -␛[33mcommit b24b967d952a8b7cf538d57d12aae8019cedada2 (␛[1m␛[36mHEAD -> ␛[32mmaster␛[0m␛[33m, ␛[0m␛[1m␛[33mtag: 2.20.0␛[0m␛[33m, ␛[0m␛[1m␛[31morigin/master␛[0m␛[33m, ␛[0m␛[1m␛[31morigin/HEAD␛[0m)␛[0m
78 +␛[33mcommit b24b967d952a8b7cf538d57d12aae8019cedada2 (␛[1m␛[36mHEAD -> ␛[32mmaster␛[0m␛[33m, ␛[0m␛[1m␛[33mtag: 2.20.0␛[0m␛[33m, ␛[0m␛[1m␛[31morigin/master␛[0m␛[33m, ␛[0m␛[1m␛[31morigin/HEAD␛[0m␛[33m)␛[0m
79 Author: Johan Walles <[email protected]>
80 Date: Wed Sep 14 19:07:05 2022 +0200
81 diff --git xtestdata/remove-file.riff-output xtestdata/remove-file.riff-output
82 index 46f5a18..5a64fa1 100644
83 --- xtestdata/remove-file.riff-output
84 +++ xtestdata/remove-file.riff-output
85 @@ -1,4 +1,4 @@
86 -␛[33mcommit 90a1c38ad8b74134c24a4726f25958da4806738d (␛[1m␛[36mHEAD -> ␛[32mmain␛[0m)␛[0m
87 +␛[33mcommit 90a1c38ad8b74134c24a4726f25958da4806738d (␛[1m␛[36mHEAD -> ␛[32mmain␛[0m␛[33m)␛[0m
88 Author: Johan Walles <[email protected]>
89 Date: Wed Sep 14 18:57:42 2022 +0200
90