Comments (2)
Would it be possible to read repository information from a bare git repository?
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)).
from onefetch.
Sorry, I got a bit tunnel-visioned, I just realized, besides building language stats, onefetch
reads files from "non-bare" repositories for
- Manifests (
package.json
,Cargo.toml
) - License files
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 gix::ThreadSafeRepository::discover_opts
doesn't currently support bare repos and would need to be updated:
Lines 113 to 120 in 3cdc171
from onefetch.
Related Issues (20)
- Arduino language support request HOT 15
- Switch from `actions-rs/*` actions HOT 1
- Astro support HOT 4
- [doc] Universal install anchor is broken HOT 2
- True color support not recognized on Windows Terminal HOT 6
- Make it easier to discover that data languages (JSON, YAML) and prose (Markdown) are not reported by default HOT 2
- Translate `README.md` to German 🇩🇪
- Parse .gitattributes HOT 1
- GPL-3.0-or-later licenses wrongly reported as GPL-3.0-only HOT 4
- Estimated development time. HOT 6
- Cannot load git config from non-standard paths when installed from `snap` HOT 17
- I can't install the new version: v2.20 HOT 2
- Installer hash does not match HOT 6
- RUSTSEC-2024-0320: yaml-rust is unmaintained.
- Handle future commit datetimes in the future without panicking HOT 7
- Include a flag to replace the "circle" with a glyph from Nerd Fonts HOT 3
- Automatically detect if no programming language is present to show overview in data-only repository HOT 4
- Add CLI option to force URL format to http
- Churn computation sometimes hangs/deadlocks
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onefetch.