mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 08:58:21 +00:00
This commit is contained in:
parent
4f3be697d5
commit
58e72cd22b
4 changed files with 15 additions and 4 deletions
|
|
@ -54,6 +54,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
* crashes on entering submodules ([#1510](https://github.com/extrawurst/gitui/issues/1510))
|
||||
* fix race issue: revlog messages sometimes appear empty ([#1473](https://github.com/extrawurst/gitui/issues/1473))
|
||||
* default to tick-based updates [[@cruessler](https://github.com/cruessler)] ([#1444](https://github.com/extrawurst/gitui/issues/1444))
|
||||
* add support for options handling in log and stashes views [[@kamillo](https://github.com/kamillo)] ([#1661](https://github.com/extrawurst/gitui/issues/1661))
|
||||
|
||||
### Changed
|
||||
* minimum supported rust version bumped to 1.64 (thank you `clap`)
|
||||
|
|
|
|||
|
|
@ -180,6 +180,7 @@ impl App {
|
|||
sender,
|
||||
theme.clone(),
|
||||
key_config.clone(),
|
||||
options.clone(),
|
||||
),
|
||||
compare_commits_popup: CompareCommitsComponent::new(
|
||||
&repo,
|
||||
|
|
@ -187,6 +188,7 @@ impl App {
|
|||
sender,
|
||||
theme.clone(),
|
||||
key_config.clone(),
|
||||
options.clone(),
|
||||
),
|
||||
external_editor_popup: ExternalEditorComponent::new(
|
||||
theme.clone(),
|
||||
|
|
|
|||
|
|
@ -6,13 +6,14 @@ use super::{
|
|||
use crate::{
|
||||
accessors,
|
||||
keys::{key_match, SharedKeyConfig},
|
||||
options::SharedOptions,
|
||||
queue::{InternalEvent, Queue, StackablePopupOpen},
|
||||
strings,
|
||||
ui::style::SharedTheme,
|
||||
};
|
||||
use anyhow::Result;
|
||||
use asyncgit::{
|
||||
sync::{self, diff::DiffOptions, CommitId, RepoPathRef},
|
||||
sync::{self, CommitId, RepoPathRef},
|
||||
AsyncDiff, AsyncGitNotification, CommitFilesParams, DiffParams,
|
||||
DiffType,
|
||||
};
|
||||
|
|
@ -34,6 +35,7 @@ pub struct CompareCommitsComponent {
|
|||
visible: bool,
|
||||
key_config: SharedKeyConfig,
|
||||
queue: Queue,
|
||||
options: SharedOptions,
|
||||
}
|
||||
|
||||
impl DrawableComponent for CompareCommitsComponent {
|
||||
|
|
@ -172,6 +174,7 @@ impl CompareCommitsComponent {
|
|||
sender: &Sender<AsyncGitNotification>,
|
||||
theme: SharedTheme,
|
||||
key_config: SharedKeyConfig,
|
||||
options: SharedOptions,
|
||||
) -> Self {
|
||||
Self {
|
||||
repo: repo.clone(),
|
||||
|
|
@ -194,6 +197,7 @@ impl CompareCommitsComponent {
|
|||
visible: false,
|
||||
key_config,
|
||||
queue: queue.clone(),
|
||||
options,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -256,7 +260,7 @@ impl CompareCommitsComponent {
|
|||
let diff_params = DiffParams {
|
||||
path: f.path.clone(),
|
||||
diff_type: DiffType::Commits(ids),
|
||||
options: DiffOptions::default(),
|
||||
options: self.options.borrow().diff_options(),
|
||||
};
|
||||
|
||||
if let Some((params, last)) =
|
||||
|
|
|
|||
|
|
@ -6,13 +6,14 @@ use super::{
|
|||
use crate::{
|
||||
accessors,
|
||||
keys::{key_match, SharedKeyConfig},
|
||||
options::SharedOptions,
|
||||
queue::{InternalEvent, Queue, StackablePopupOpen},
|
||||
strings,
|
||||
ui::style::SharedTheme,
|
||||
};
|
||||
use anyhow::Result;
|
||||
use asyncgit::{
|
||||
sync::{diff::DiffOptions, CommitId, CommitTags, RepoPathRef},
|
||||
sync::{CommitId, CommitTags, RepoPathRef},
|
||||
AsyncDiff, AsyncGitNotification, DiffParams, DiffType,
|
||||
};
|
||||
use crossbeam_channel::Sender;
|
||||
|
|
@ -61,6 +62,7 @@ pub struct InspectCommitComponent {
|
|||
git_diff: AsyncDiff,
|
||||
visible: bool,
|
||||
key_config: SharedKeyConfig,
|
||||
options: SharedOptions,
|
||||
}
|
||||
|
||||
impl DrawableComponent for InspectCommitComponent {
|
||||
|
|
@ -208,6 +210,7 @@ impl InspectCommitComponent {
|
|||
sender: &Sender<AsyncGitNotification>,
|
||||
theme: SharedTheme,
|
||||
key_config: SharedKeyConfig,
|
||||
options: SharedOptions,
|
||||
) -> Self {
|
||||
Self {
|
||||
queue: queue.clone(),
|
||||
|
|
@ -229,6 +232,7 @@ impl InspectCommitComponent {
|
|||
git_diff: AsyncDiff::new(repo.borrow().clone(), sender),
|
||||
visible: false,
|
||||
key_config,
|
||||
options,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -272,7 +276,7 @@ impl InspectCommitComponent {
|
|||
diff_type: DiffType::Commit(
|
||||
request.commit_id,
|
||||
),
|
||||
options: DiffOptions::default(),
|
||||
options: self.options.borrow().diff_options(),
|
||||
};
|
||||
|
||||
if let Some((params, last)) =
|
||||
|
|
|
|||
Loading…
Reference in a new issue