feat: use go-git index instead of git ls-files #23

Merged
brianmcgee merged 1 commits from feat/go-git-ls into main 2024-01-12 11:33:15 +00:00
Member

Figured out how to use go-git properly.

# git

❯ nix run .# -- --config-file ./test/echo.toml --tree-root /home/brian/Development/com/github/nixos/nixpkgs -c
38539 files changed in 272.843495ms

# filesystem

❯ nix run .# -- --config-file ./test/echo.toml --tree-root /home/brian/Development/com/github/nixos/nixpkgs -c --walk filesystem
38567 files changed in 348.84277ms

Signed-off-by: Brian McGee brian@bmcgee.ie

Figured out how to use `go-git` properly. ```console # git ❯ nix run .# -- --config-file ./test/echo.toml --tree-root /home/brian/Development/com/github/nixos/nixpkgs -c 38539 files changed in 272.843495ms # filesystem ❯ nix run .# -- --config-file ./test/echo.toml --tree-root /home/brian/Development/com/github/nixos/nixpkgs -c --walk filesystem 38567 files changed in 348.84277ms ``` Signed-off-by: Brian McGee <brian@bmcgee.ie>
brianmcgee added 1 commit 2024-01-12 09:39:58 +00:00
Signed-off-by: Brian McGee <brian@bmcgee.ie>
brianmcgee requested review from zimbatm 2024-01-12 09:40:04 +00:00
zimbatm approved these changes 2024-01-12 11:07:52 +00:00
zimbatm left a comment
Owner

yup, less concurrency is good.

I'm curious, did you compare the perfs between the native and Go implementations of Git?

yup, less concurrency is good. I'm curious, did you compare the perfs between the native and Go implementations of Git?
Author
Member

I'm curious, did you compare the perfs between the native and Go implementations of Git?

Nope, worth doing at some point though.

> I'm curious, did you compare the perfs between the native and Go implementations of Git? Nope, worth doing at some point though.
brianmcgee merged commit 80e99b6d75 into main 2024-01-12 11:33:15 +00:00
This repo is archived. You cannot comment on pull requests.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: numtide/treefmt#23
No description provided.