Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions gix-config/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
21 changes: 16 additions & 5 deletions gix-config/src/source.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down
Loading