History

feat!: represent object cache configuration like `GITOXIDE_PACK_CACHE_MEMORY` in git-configuration.

That way there is a unified system for how to set values, which may be overridable by configuration variables or not. With this changes, the explicit application of environment variables for setting the cache isn't required anymore as everything happens using git-configuration, and automatically, while providing full control like before.

Sebastian Thiel committed 3 years ago

Commit becbd8d1 parent a4ac9cf12 files · +151 −86Browse files

Showing the changes to git-repository/examples (1 of 12 files). Show all

Unified · Split

git-repository/examples/stats.rs+1−1
@@ -2,7 +2,7 @@ use git_repository as git; · 1 unmodified line
22 use git_repository::Reference;
33
44 fn main() -> Result<(), Box<dyn std::error::Error>> {
5− let mut repo = git::discover(".")?.apply_environment();
5+ let mut repo = git::discover(".")?;
66 println!("Repo: {}", repo.work_dir().unwrap_or_else(|| repo.git_dir()).display());
77 let mut max_commit_size = 0;
88 let mut avg_commit_size = 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t