-
Notifications
You must be signed in to change notification settings - Fork 281
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
Bare repository support #1299
Comments
Not as long as we use tokei, since that uses the actual files in the repository's directory, not the files in the git history. Though we might switch to a tool that can read bare repos. Though we're still figuring out what the "source" for the files should be after the switch (e.g. #1152 (comment)). |
Sorry, I got a bit tunnel-visioned, I just realized, besides building language stats,
So, besides #1305 (supersedes #1152), we'd have to update those utilities to read from a git commit/index. I don't think these stats will break, but they won't be included until those are updated as well. Also, if I'm not mistaken, our call to Lines 113 to 120 in 3cdc171
|
do we have any updates on this or the bare support is still in draft? |
No updates. I've been very slow on #1305, even though not much work is left 🙇 If we ever support bare repos we'll need to make that switch, since I highly doubt that Tokei would ever behave in such a specialized manner. So here's roughly what's left:
After that's done I think it will be pretty easy to support bare repositories for language detection (licenses and package manifests are a different story). |
thank you for the update and please take your time and thanks again for your work :) |
Thank you! If you're interested, you can help add language support to Gengo (spenserblack/gengo#34). It's roughly 90% done -- it looks like I've slowed down the closer I got to the finish line 😅 Contributing language support is pretty easy. If you're familiar with the language, great! If not, it just takes some quick research to find at least one popular file extensions and/or filename for the language. Besides that, there's just picking a primary color for the language. |
Summary 💡
Would it be possible to read repository information from a bare git repository? Currently only an error is printed that no repository can be found.
Motivation 🔦
I have a server running where all of my Git repositories are stored for synchronization. These are only bare repositories and it would be really helpful to get the statistics without cloning them or installing
onefetch
on every machine (I am developing on Windows, Linux and Mac).The text was updated successfully, but these errors were encountered: