💡 Note
the commands are not able to list bare repositories, because bare repositories do not have a.git/
directory, thus, thetrue_store
needs to filter out the bare repositorieslet true_store = $repos | where not bare | get path
💡 Note
thels
andglob
Nushell commands do not have a--type directory
option, so do not use it forfd
andfind
source main.nu
try ...
💡 Note
generated withtry --rounds 25 --use-true-store | update mean { format duration ms } | update std { format duration ms } | to md --pretty
name | mean | std |
---|---|---|
find | 1207.19 ms | 125.09 ms |
fd | 443.31 ms | 40.51 ms |
ls | 3146.65 ms | 102.85 ms |
glob | 1091.34 ms | 3.89 ms |
for 105 actual repos and 383858 files in total reported by ^find $env.GIT_REPOS_HOME