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
|
[33mcommit 62da46c7b300321119d399bdc69bfb2d56d5da57 ([1m[36mHEAD -> [32mjohan/git-log-p-headings[22m[33m, [1mtag: 2.21.0[22m[33m, [1m[31morigin/master[22m[33m, [1m[31morigin/HEAD[22m[33m, [1m[31mmaster[22m[33m)[0m
Author: Johan Walles <johan.walles@gmail.com>
Date: Mon Oct 24 00:32:27 2022 +0200
Bump version number to 2.21.0
[2mdiff --git xxCargo.lock xxCargo.lock[0m
[2mindex 860dfcd..ac98582 100644[0m
[1m--- xxCargo.lock[0m
[1m+++ xxCargo.lock[0m
[36m@@ -357,7 +357,7 @@ [1mdependencies = [[0m
[[package]]
name = "riffdiff"
[31m-version = "2.[7m20[27m.0"[0m
[32m+version = "2.[7m21[27m.0"[0m
dependencies = [
"backtrace",
"bytecount",
[2mdiff --git xxCargo.toml xxCargo.toml[0m
[2mindex a9ed33a..6ac6ddc 100644[0m
[1m--- xxCargo.toml[0m
[1m+++ xxCargo.toml[0m
[36m@@ -2,7 +2,7 @@[0m
[package]
name = "riffdiff" # Actually "riff", but that was already taken on crates.io
[31m-version = "2.[7m20[27m.0"[0m
[32m+version = "2.[7m21[27m.0"[0m
authors = ["Johan Walles <johan.walles@gmail.com>"]
edition = "2018"
repository = "https://github.com/walles/riff/"
[33m[48;5;17m[0Kcommit 700b5b5d609c34b2cd8f99a3dd81f9784ae17cac[0m
Author: Johan Walles <johan.walles@gmail.com>
Date: Mon Oct 24 00:30:53 2022 +0200
Update the screenshot
"commit" line is now highlighted in yellow.
[2mdiff --git xxscreenshot.png xxscreenshot.png[0m
[2mindex 25ab17b..c7385d0 100644[0m
[1mBinary files xxscreenshot.png and xxscreenshot.png differ[0m
[33m[48;5;17m[0Kcommit 8923ac0d11a3569d28786bd6da725869953f5fcb[0m
Author: Johan Walles <johan.walles@gmail.com>
Date: Mon Oct 24 00:26:59 2022 +0200
Fix trailing parenthesis coloring
[2mdiff --git xsrc/commit_line.rs xsrc/commit_line.rs[0m
[2mindex 034b97e..7bcbf6b 100644[0m
[1m--- [0mxsrc/[1mcommit_line.rs[0m
[1m+++ [0mxsrc/[1mcommit_line.rs[0m
[36m@@ -26,13 +26,14 @@ [1mpub fn format_commit_line(line: &str) -> String {[0m
let comma = format!("{}, {}", YELLOW, NORMAL);
return format!(
[31m- "{}{} ({}){}",[0m
[32m+ "{}{} ({}[7m{}[27m){}",[0m
YELLOW,
commit_part,
parenthesis_parts
.iter()
.map(|part| format_commit_part(part, ¤t_branch))
.join(&comma),
[32m+ YELLOW,[0m
NORMAL
);
}
[2mdiff --git xtestdata/git-commit-line.riff-output xtestdata/git-commit-line.riff-output[0m
[2mindex 0b42b6d..5edede3 100644[0m
[1m--- [0mxtestdata/[1mgit-commit-line.riff-output[0m
[1m+++ [0mxtestdata/[1mgit-commit-line.riff-output[0m
[36m@@ -1,3 +1,3 @@[0m
[31m-␛[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[0m
[32m+␛[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[7m␛[33m[27m)␛[0m[0m
Author: Johan Walles <johan.walles@gmail.com>
Date: Wed Sep 14 19:07:05 2022 +0200
[2mdiff --git xtestdata/remove-file.riff-output xtestdata/remove-file.riff-output[0m
[2mindex 46f5a18..5a64fa1 100644[0m
[1m--- [0mxtestdata/[1mremove-file.riff-output[0m
[1m+++ [0mxtestdata/[1mremove-file.riff-output[0m
[36m@@ -1,4 +1,4 @@[0m
[31m-␛[33mcommit 90a1c38ad8b74134c24a4726f25958da4806738d (␛[1m␛[36mHEAD -> ␛[32mmain␛[0m)␛[0m[0m
[32m+␛[33mcommit 90a1c38ad8b74134c24a4726f25958da4806738d (␛[1m␛[36mHEAD -> ␛[32mmain␛[0m[7m␛[33m[27m)␛[0m[0m
Author: Johan Walles <johan.walles@gmail.com>
Date: Wed Sep 14 18:57:42 2022 +0200
|