Skip to content

Commit 25acc74

Browse files
committed
split me, no split you
1 parent dc8ba62 commit 25acc74

File tree

4 files changed

+22
-17
lines changed

4 files changed

+22
-17
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "dukit"
3-
version = "0.4.1"
3+
version = "0.4.2"
44
edition = "2021"
55
authors =[ "Tharun <tharun1@hotmail.co.uk>" ]
66
description = "git cli tool for the feathered"

README.md

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -97,18 +97,23 @@ h: src/duck_commands.rs
9797
### Better git log output
9898
notice how the output is reversed (most recent at the bottom)
9999
```
100-
8436fdb
101-
init
102-
dc7338e
103-
chore: commit 1
104-
30357b2
105-
feat: commit 2
106-
0562d8c
107-
feat: commit 3
108-
5dade7e
109-
refactor: commit 4
110-
0167a1b
111-
feat: commit 5
100+
c525447
101+
added MIT license
102+
103+
f5f3531
104+
feat: git add via keys
105+
106+
51ea5cb
107+
fix: removed debug printstatement
108+
109+
a72b18b
110+
Merge pull request #2 from DrCheeseFace/feature/rework-gitadd-interactive
111+
112+
d9e5d70
113+
chore: prettier printout for git add keys and interactive
114+
115+
4c503ad
116+
refactor: more like refuctor
112117
```
113118

114119
## Installation

src/duck_commands.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ impl DuckCommands {
5353
};
5454

5555
for k in out.trim().split('\n').rev() {
56-
let (hash, message) = k.split_at(7);
57-
println!("{}{}", color::Fg(color::Cyan), hash);
58-
println!("{}{}", color::Fg(color::Green), message);
56+
let (hash, message): (String, String) = k.split_once(' ').into_iter().collect();
57+
println!("{}{}", color::Fg(color::Yellow), hash);
58+
println!("{}{}\n", color::Fg(color::White), message);
5959
}
6060
}
6161

0 commit comments

Comments
 (0)