Skip to content

Gitoxide for performance improvements #635

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 38 commits into from
Apr 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
5d7b5c8
Add gitoxide as dependency
Byron Mar 29, 2022
1bb11e6
get_logs() with gitoxide
Byron Mar 29, 2022
e3b29b0
Use gitoxide in all methods related to commits
Byron Mar 29, 2022
8df0d19
obtain all but author information on the fly
Byron Mar 30, 2022
954de84
no cloning for `Sig` and `Author` by using BString directly
Byron Mar 30, 2022
0652bbe
Calculate authors on the fly as much as possible; don't store commits
Byron Mar 30, 2022
65da5be
fix commit count
Byron Mar 30, 2022
28deadf
refactor
Byron Mar 30, 2022
2a67bb4
Use `gitoxide` for calculating repo size
Byron Mar 30, 2022
9b2774c
refactor
Byron Mar 30, 2022
c42a1ef
gitoxide for tags; Fix author name and email printing; avoid doing un…
Byron Mar 30, 2022
615e071
Retrieve all branches with `gitoxide`
Byron Mar 30, 2022
2c6016e
get most recent version with gitoxide
Byron Mar 30, 2022
f61761d
Collect branches at current head-commit with gitoxide
Byron Mar 30, 2022
1942087
Assure short ids are not ambiguous
Byron Mar 30, 2022
4fc3334
refactor
Byron Mar 30, 2022
4085053
refactor
Byron Mar 30, 2022
5394f3c
get worktree status in parallel
Byron Mar 30, 2022
d178a5c
gather language statistics in parallel to everything else
Byron Mar 30, 2022
633f0ce
Do three things in parallel, don't wait for `Repo::new()`
Byron Mar 30, 2022
6817e48
Don't take risks when making assumptions about what branches point at
Byron Mar 30, 2022
a5ab965
Tune the object cache based on scienceℒ️
Byron Mar 31, 2022
04ff547
Improve unification of contributors by taking the lower-case email as…
Byron Mar 31, 2022
397b4ae
Compute contributor identity using emails, lowercase, only
Byron Mar 31, 2022
3f94c51
thanks clippy
Byron Mar 31, 2022
82fbbb2
See if running onefetch on itself can reproduce the crashing on windows
Byron Mar 31, 2022
1a494a9
support for shallow clones
Byron Mar 31, 2022
d3d20ed
Use email and name to identify contributors, similar to what git does
Byron Mar 31, 2022
eb753f9
Don't peel references - this would resolve remotes/origin/HEAD to …main…
Byron Mar 31, 2022
927815a
Make clear that the commit count might be truncated due to shallow cl…
Byron Apr 1, 2022
b9b65c7
Update to use gitoxide's built-in shallow clone detection
Byron Apr 1, 2022
fb4d449
Remove additional deduplication of contributors by email
Byron Apr 2, 2022
80f4710
switch gitoxide crates from git to crates.io
Byron Apr 3, 2022
4159442
Improve Cargo.toml dependency declaration
Byron Apr 4, 2022
c6d7cba
Make expect("msg") more informative to help users file an issue
Byron Apr 4, 2022
d00ab45
refactor: put all commit-traversal related initialization into own st…
Byron Apr 4, 2022
7b34b0a
refactor: completely separate `Commits` and `Repo` structure
Byron Apr 4, 2022
b6cd415
refactor: git2 repository can now be owned by the `Repo` type
Byron Apr 4, 2022
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
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ jobs:
- name: Run clippy
run: cargo clippy

- name: Run onefetch
run: cargo run

rustfmt:
name: Rustfmt
runs-on: ubuntu-latest
Expand Down
Loading