mirror of
https://github.com/extrawurst/gitui.git
synced 2024-11-26 12:35:14 +03:00
no file contents
changelog
This commit is contained in:
parent
5b70e88cc5
commit
9117a1a5b7
@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
## Added
|
||||
- merging branches, pull-merge with conflicts, commit merges ([#485](https://github.com/extrawurst/gitui/issues/485))
|
||||
- warning if commit subject line gets too long ([#478](https://github.com/extrawurst/gitui/issues/478))
|
||||
- `--bugreport` cmd line arg to help diagnostics [[@zcorniere](https://github.com/zcorniere)] ([#695](https://github.com/extrawurst/gitui/issues/695))
|
||||
|
||||
## Changed
|
||||
- smarter log timestamps ([#682](https://github.com/extrawurst/gitui/issues/682))
|
||||
|
@ -40,9 +40,9 @@ serde = "1.0"
|
||||
anyhow = "1.0"
|
||||
unicode-width = "0.1"
|
||||
textwrap = "0.13"
|
||||
unicode-truncate = "0.2.0"
|
||||
unicode-truncate = "0.2"
|
||||
easy-cast = "0.4"
|
||||
bugreport = "0.4.0"
|
||||
bugreport = "0.4"
|
||||
|
||||
[target.'cfg(all(target_family="unix",not(target_os="macos")))'.dependencies]
|
||||
which = "4.1"
|
||||
|
@ -3,31 +3,23 @@ use bugreport::{
|
||||
bugreport,
|
||||
collector::{
|
||||
CommandLine, CompileTimeInformation, EnvironmentVariables,
|
||||
FileContent, OperatingSystem, SoftwareVersion,
|
||||
OperatingSystem, SoftwareVersion,
|
||||
},
|
||||
format::Markdown,
|
||||
};
|
||||
|
||||
use crate::get_app_config_path;
|
||||
|
||||
pub fn generate_bugreport() -> Result<()> {
|
||||
let mut config_file = get_app_config_path()?;
|
||||
config_file.push("gitui/");
|
||||
|
||||
bugreport!()
|
||||
.info(SoftwareVersion::default())
|
||||
.info(OperatingSystem::default())
|
||||
.info(CompileTimeInformation::default())
|
||||
.info(EnvironmentVariables::list(&["SHELL", "EDITOR"]))
|
||||
.info(EnvironmentVariables::list(&[
|
||||
"SHELL",
|
||||
"EDITOR",
|
||||
"GIT_EDITOR",
|
||||
"VISUAL",
|
||||
]))
|
||||
.info(CommandLine::default())
|
||||
.info(FileContent::new(
|
||||
"theme.ron",
|
||||
config_file.with_file_name("theme.ron"),
|
||||
))
|
||||
.info(FileContent::new(
|
||||
"key_config.ron",
|
||||
config_file.with_file_name("key_config.ron"),
|
||||
))
|
||||
.print::<Markdown>();
|
||||
Ok(())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user