git config --global core.untrackedCache true
With this setting, I've now been running the rust version of my git-dirty-checker under hyperfine to measure run time. It doesn't seem to make much of a difference. Around 210 ms for each run, with or without the option.
git config --global core.untrackedCache true
With this setting, I've now been running the rust version of my git-dirty-checker under hyperfine to measure run time. It doesn't seem to make much of a difference. Around 210 ms for each run, with or without the option.
git-scm.com/docs/git-upd...
I'm not exactly sure how these options relate to, or play along with, each other...
git-scm.com/docs/git-upd...
I'm not exactly sure how these options relate to, or play along with, each other...
git-scm.com/docs/git-fsm...
Is that of any help to our use case?
git-scm.com/docs/git-fsm...
Is that of any help to our use case?
expect(sum(3, 0)).toEqual(3);
});
Seems to work fine!
expect(sum(3, 0)).toEqual(3);
});
Seems to work fine!
github.com/skagedal/ska...
It does the same job in about 0.45 seconds.
github.com/skagedal/ska...
It does the same job in about 0.45 seconds.
printf '%s\n' ~/code/*/ | parallel 'git -C {} status --porcelain 2>/dev/null | grep -q . && realpath {}'
On the same set of repos, this takes 0.5 seconds.
printf '%s\n' ~/code/*/ | parallel 'git -C {} status --porcelain 2>/dev/null | grep -q . && realpath {}'
On the same set of repos, this takes 0.5 seconds.
for dir in ~/code/*/; do git -C "$dir" status --porcelain 2>/dev/null | grep -q . && realpath "$dir"; done
This takes about 10 seconds on my example set.
for dir in ~/code/*/; do git -C "$dir" status --porcelain 2>/dev/null | grep -q . && realpath "$dir"; done
This takes about 10 seconds on my example set.
my shell prompt should include the number of dirty repositories under my ~/code directory.
Clearly, assuming that I have let's say hundreds of repos, this means caching. But how?
my shell prompt should include the number of dirty repositories under my ~/code directory.
Clearly, assuming that I have let's say hundreds of repos, this means caching. But how?