Skip to content

Commit 6b23935

Browse files
Merge remote-tracking branch 'upstream/master'
2 parents 0593f5d + 61e52d9 commit 6b23935

Some content is hidden

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

43 files changed

+215
-263
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## Unreleased
99

10+
### Fixes
11+
* respect env vars like `GIT_CONFIG_GLOBAL` ([#2298](https://github.com/extrawurst/gitui/issues/2298))
12+
1013
## [0.26.3] - 2024-06-02
1114

1215
### Breaking Changes

Cargo.lock

+50-54
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

asyncgit/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ easy-cast = "0.5"
1919
fuzzy-matcher = "0.3"
2020
git2 = "0.19"
2121
git2-hooks = { path = "../git2-hooks", version = "0.3" }
22-
gix = { version = "0.63", default-features = false, features = ["max-performance", "revision"] }
22+
gix = { version = "0.64", default-features = false, features = ["max-performance", "revision"] }
2323
log = "0.4"
2424
# git2 = { path = "../../extern/git2-rs", features = ["vendored-openssl"]}
2525
# git2 = { git="https://github.com/extrawurst/git2-rs.git", rev="fc13dcc", features = ["vendored-openssl"]}

asyncgit/src/asyncjob/mod.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ impl<J: 'static + AsyncJob> AsyncSingleJob<J> {
9292
}
9393

9494
/// makes sure `next` is cleared and returns `true` if it actually canceled something
95-
pub fn cancel(&mut self) -> bool {
95+
pub fn cancel(&self) -> bool {
9696
if let Ok(mut next) = self.next.lock() {
9797
if next.is_some() {
9898
*next = None;
@@ -111,7 +111,7 @@ impl<J: 'static + AsyncJob> AsyncSingleJob<J> {
111111
/// spawns `task` if nothing is running currently,
112112
/// otherwise schedules as `next` overwriting if `next` was set before.
113113
/// return `true` if the new task gets started right away.
114-
pub fn spawn(&mut self, task: J) -> bool {
114+
pub fn spawn(&self, task: J) -> bool {
115115
self.schedule_next(task);
116116
self.check_for_job()
117117
}
@@ -162,7 +162,7 @@ impl<J: 'static + AsyncJob> AsyncSingleJob<J> {
162162
Ok(())
163163
}
164164

165-
fn schedule_next(&mut self, task: J) {
165+
fn schedule_next(&self, task: J) {
166166
if let Ok(mut next) = self.next.lock() {
167167
*next = Some(task);
168168
}
@@ -226,7 +226,7 @@ mod test {
226226
fn test_overwrite() {
227227
let (sender, receiver) = unbounded();
228228

229-
let mut job: AsyncSingleJob<TestJob> =
229+
let job: AsyncSingleJob<TestJob> =
230230
AsyncSingleJob::new(sender);
231231

232232
let task = TestJob {
@@ -265,7 +265,7 @@ mod test {
265265
fn test_cancel() {
266266
let (sender, receiver) = unbounded();
267267

268-
let mut job: AsyncSingleJob<TestJob> =
268+
let job: AsyncSingleJob<TestJob> =
269269
AsyncSingleJob::new(sender);
270270

271271
let task = TestJob {

0 commit comments

Comments
 (0)