datalad icon indicating copy to clipboard operation
datalad copied to clipboard

FOI: gitstatusd?

Open yarikoptic opened this issue 3 years ago • 1 comments

During today's datalad office hours @mih was seduced by the beauty of the https://github.com/romkatv/powerlevel10k/ . While trying it out I saw that the thing installed some binary

❯ ls -ld .cache/gitstatus/gitstatusd-linux-x86_64
-rwxr-xr-x    1 root     root       2127032 Feb 14  2022 .cache/gitstatus/gitstatusd-linux-x86_64

so I have searched it into https://github.com/romkatv/powerlevel10k/blob/f217e4a39a284f6db7be7a4cfde8647085f97865/gitstatus/README.md

gitstatus is a 10x faster alternative to git status and git describe. Its primary use case is to enable fast git prompt in interactive shells. ... Why fast Since gitstatusd doesn't have to print all staged/unstaged/untracked files but only report whether there are any, it can terminate repository scan early. It can also remember which files were dirty on the previous run and check them first on the next run to avoid the scan entirely if the files are still dirty. ...

not yet sure if some approach like this would be good for datalad, BUT who knows, especially if it could be centralized/reused with p10k etc.

yarikoptic avatar Sep 08 '22 14:09 yarikoptic

Nice find! Thx!

mih avatar Sep 08 '22 19:09 mih