| Crates.io | gitlsf |
| lib.rs | gitlsf |
| version | 0.1.0 |
| created_at | 2026-01-10 19:43:24.037208+00 |
| updated_at | 2026-01-10 19:43:24.037208+00 |
| description | A fast Git repository line counter |
| homepage | |
| repository | https://github.com/SOV710/gitlsf |
| max_upload_size | |
| id | 2034609 |
| size | 64,220 |
A fast Git repository line counter written in Rust.
git clone https://github.com/SOV710/gitlsf.git
cd gitlsf
cargo install --path .
cargo install gitlsf
Download pre-built binaries from the Releases page.
# Count lines in current directory
gitlsf
# Count lines in a specific directory
gitlsf /path/to/repo
# Quiet mode - only show total
gitlsf -q
# Summary mode - show file count and total lines
gitlsf -s
# Verbose mode (default) - show each file
gitlsf -v
Usage: gitlsf [OPTIONS] [PATH]
Arguments:
[PATH] Path to the Git repository (defaults to current directory)
Options:
-v, --verbose Verbose mode - show each file with its line count (default)
-q, --quiet Quiet mode - only show the total line count
-s, --summary Summary mode - show total lines and file count
-h, --help Print help
-V, --version Print version
Default (verbose) mode:
3 src/main.rs
2 src/lib.rs
5 total
Quiet mode (-q):
5
Summary mode (-s):
Files: 2
Lines: 5
gitlsf automatically excludes the following file types:
Media files: .mp3, .png, .jpg, .jpeg, .gif, .svg, .woff2, .ico, .webp, .bmp, .tiff, .wav, .mp4, .avi, .mov, .webm, .flac, .ogg, .ttf, .woff, .eot, .otf, .pdf
Data files: .mmdb, .csv, .json, .toml, .lock, .ini, .yaml, .yml, .xml
Documentation: .md
Special files: LICENSE, LICENSE-MIT, LICENSE-APACHE, .gitignore
gitlsf is designed to be fast even on large repositories:
git ls-files for efficient file listingcargo build
cargo test
cargo clippy -- -D warnings
cargo fmt
cargo doc --open
Contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/amazing-feature)git commit -m 'Add some amazing feature')git push origin feature/amazing-feature)This project is licensed under the MIT License - see the LICENSE file for details.