Skip to content

Commit 6bdece1

Browse files
committed
Merge branch 'master' into feat/checkout_method
2 parents 7c4bb1c + cb17cfe commit 6bdece1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+198
-135
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Added
1313
* support choosing checkout branch method when status is not empty [[@fatpandac](https://github.com/fatpandac)] ([#2404](https://github.com/extrawurst/gitui/issues/2404))
14+
* Support pre-push hook [[@xlai89](https://github.com/xlai89)] ([#1933](https://github.com/extrawurst/gitui/issues/1933))
1415
* Message tab supports pageUp and pageDown [[@xlai89](https://github.com/xlai89)] ([#2623](https://github.com/extrawurst/gitui/issues/2623))
1516
* Files and status tab support pageUp and pageDown [[@fatpandac](https://github.com/fatpandac)] ([#1951](https://github.com/extrawurst/gitui/issues/1951))
1617
* support loading custom syntax highlighting themes from a file [[@acuteenvy](https://github.com/acuteenvy)] ([#2565](https://github.com/gitui-org/gitui/pull/2565))

Cargo.lock

Lines changed: 36 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,21 @@ indexmap = "2"
5555
itertools = "0.14"
5656
log = "0.4"
5757
notify = "8"
58-
notify-debouncer-mini = "0.6"
58+
notify-debouncer-mini = "0.7"
5959
once_cell = "1"
6060
parking_lot_core = "0.9"
6161
ratatui = { version = "0.29", default-features = false, features = [
6262
'crossterm',
6363
'serde',
6464
] }
6565
rayon-core = "1.13"
66-
ron = "0.10"
66+
ron = "0.11"
6767
scopeguard = "1.2"
6868
scopetime = { path = "./scopetime", version = "0.1" }
6969
serde = "1.0"
7070
shellexpand = "3.1"
7171
simplelog = { version = "0.12", default-features = false }
72-
struct-patch = "0.9"
72+
struct-patch = "0.10"
7373
syntect = { version = "5.3", default-features = false, features = [
7474
"parsing",
7575
"default-syntaxes",
@@ -78,7 +78,7 @@ syntect = { version = "5.3", default-features = false, features = [
7878
"html",
7979
] }
8080
tui-textarea = "0.7"
81-
two-face = { version = "0.4.3", default-features = false }
81+
two-face = { version = "0.4.4", default-features = false }
8282
unicode-segmentation = "1.12"
8383
unicode-truncate = "2.0"
8484
unicode-width = "0.2"

asyncgit/src/asyncjob/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ impl<J: 'static + AsyncJob> AsyncSingleJob<J> {
130130
let self_clone = (*self).clone();
131131
rayon_core::spawn(move || {
132132
if let Err(e) = self_clone.run_job(task) {
133-
log::error!("async job error: {}", e);
133+
log::error!("async job error: {e}");
134134
}
135135
});
136136

asyncgit/src/blame.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ impl AsyncBlame {
116116

117117
let notify = match notify {
118118
Err(err) => {
119-
log::error!("get_blame_helper error: {}", err);
119+
log::error!("get_blame_helper error: {err}");
120120
true
121121
}
122122
Ok(notify) => notify,

asyncgit/src/commit_files.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ impl AsyncCommitFiles {
8989
return Ok(());
9090
}
9191

92-
log::trace!("request: {:?}", params);
92+
log::trace!("request: {params:?}");
9393

9494
{
9595
let current = self.current.lock()?;

asyncgit/src/diff.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ impl AsyncDiff {
9898
&self,
9999
params: DiffParams,
100100
) -> Result<Option<FileDiff>> {
101-
log::trace!("request {:?}", params);
101+
log::trace!("request {params:?}");
102102

103103
let hash = hash(&params);
104104

@@ -131,8 +131,8 @@ impl AsyncDiff {
131131
);
132132

133133
let notify = match notify {
134-
Err(err) => {
135-
log::error!("get_diff_helper error: {}", err);
134+
Err(e) => {
135+
log::error!("get_diff_helper error: {e}");
136136
true
137137
}
138138
Ok(notify) => notify,

asyncgit/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ It wraps libraries like git2 and gix.
3333
clippy::module_name_repetitions,
3434
clippy::must_use_candidate,
3535
clippy::missing_errors_doc,
36-
clippy::empty_docs
36+
clippy::empty_docs,
37+
clippy::unnecessary_debug_formatting
3738
)]
3839
//TODO:
3940
#![allow(

asyncgit/src/pull.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ impl AsyncPull {
153153
*last_res = match res {
154154
Ok(bytes) => Some((bytes, String::new())),
155155
Err(e) => {
156-
log::error!("fetch error: {}", e);
156+
log::error!("fetch error: {e}");
157157
Some((0, e.to_string()))
158158
}
159159
};

asyncgit/src/push.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ impl AsyncPush {
164164
*last_res = match res {
165165
Ok(()) => None,
166166
Err(e) => {
167-
log::error!("push error: {}", e);
167+
log::error!("push error: {e}",);
168168
Some(e.to_string())
169169
}
170170
};

0 commit comments

Comments
 (0)