diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index fbad2b2ab40..17e37f483be 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,3 +1,7 @@ -For now, please have a look at the section in the [README] file. +### Please disclose the use AI… + +…if it's *full agent mode* or *multi*-line completions in the PR comment. + +For everything else, please have a look at the respective section in the [README] file. [README]: https://github.com/GitoxideLabs/gitoxide#contributions diff --git a/Cargo.lock b/Cargo.lock index 22c202c068c..99e91b3e970 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1574,6 +1574,7 @@ dependencies = [ "gix-path", "gix-ref", "gix-sec", + "home", "memchr", "once_cell", "serde", diff --git a/Makefile b/Makefile index 87d3a3cef5a..dd89d33f844 100644 --- a/Makefile +++ b/Makefile @@ -53,6 +53,9 @@ $(test_many_commits_1m_repo): mkdir -p $@ cd $@ && git init --bare && git remote add origin https://github.com/cirosantilli/test-many-commits-1m.git && git fetch +etc/gix-asciicast.svg: + svg-term --cast=542159 --out $@ --window + ## get all non-rc tags up to v5.8, oldest tag first (should have 78 tags) ## -> convert to commit ids ## -> write a new incremental commit-graph file for each commit id diff --git a/gix-config/Cargo.toml b/gix-config/Cargo.toml index 6391a1aef01..8f96cfa49d8 100644 --- a/gix-config/Cargo.toml +++ b/gix-config/Cargo.toml @@ -35,6 +35,9 @@ serde = { version = "1.0.114", optional = true, default-features = false, featur smallvec = "1.15.1" once_cell = "1.21.3" +[target.'cfg(not(target_family = "wasm"))'.dependencies] +home = "0.5.5" + document-features = { version = "0.2.0", optional = true } [dev-dependencies] diff --git a/gix-config/src/source.rs b/gix-config/src/source.rs index d56c1a51b67..4da0a82b8d7 100644 --- a/gix-config/src/source.rs +++ b/gix-config/src/source.rs @@ -100,11 +100,22 @@ impl Source { User => env_var("GIT_CONFIG_GLOBAL") .map(|global_override| PathBuf::from(global_override).into()) .or_else(|| { - env_var("HOME").map(|home| { - let mut p = PathBuf::from(home); - p.push(".gitconfig"); - p.into() - }) + env_var("HOME") + .map(PathBuf::from) + .or_else(|| { + #[cfg(not(target_family = "wasm"))] + { + home::home_dir() + } + #[cfg(target_family = "wasm")] + { + None + } + }) + .map(|mut p| { + p.push(".gitconfig"); + p.into() + }) }), Local => Some(Path::new("config").into()), Worktree => Some(Path::new("config.worktree").into()),