{"id":20602141,"url":"https://github.com/modernizing/git-scanner","last_synced_at":"2026-03-05T02:31:08.088Z","repository":{"id":62439538,"uuid":"344318488","full_name":"modernizing/git-scanner","owner":"modernizing","description":"Git Scanner for code analaysis","archived":false,"fork":false,"pushed_at":"2021-03-07T03:13:25.000Z","size":88,"stargazers_count":8,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-01-14T01:34:04.012Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/modernizing.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-03-04T01:54:31.000Z","updated_at":"2023-02-23T16:21:59.000Z","dependencies_parsed_at":"2022-11-01T23:33:18.336Z","dependency_job_id":null,"html_url":"https://github.com/modernizing/git-scanner","commit_stats":null,"previous_names":["inherd/git-scanner"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/modernizing/git-scanner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modernizing%2Fgit-scanner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modernizing%2Fgit-scanner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modernizing%2Fgit-scanner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modernizing%2Fgit-scanner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/modernizing","download_url":"https://codeload.github.com/modernizing/git-scanner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/modernizing%2Fgit-scanner/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30107203,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T01:39:18.192Z","status":"online","status_checked_at":"2026-03-05T02:00:06.710Z","response_time":93,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T09:12:54.180Z","updated_at":"2026-03-05T02:31:08.059Z","avatar_url":"https://github.com/modernizing.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Git Scanner\n\n\n[![Docs](https://docs.rs/git-scanner/badge.svg)](https://docs.rs/git-scanner)\n[![Crates.io](https://img.shields.io/crates/d/git-scanner.svg)](https://crates.io/crates/git-scanner)\n[![Crates.io](https://img.shields.io/crates/v/git-scanner.svg)](https://crates.io/crates/git-scanner)\n\nbased on [Polyglot Code Scanner](https://github.com/kornysietsma/polyglot-code-scanner) with changes:\n\n - keep git logic only.\n - publish to crates.io\n\ntodo:\n\n - [ ] add git clone.\n - [ ] add history.\n - [ ] merge cmd from coco.\n\nexamples:\n\n```rust\nuse git_scanner::flare::FlareTreeNode;\nuse git_scanner::git::GitCalculator;\nuse git_scanner::git_logger::GitLogConfig;\nuse git_scanner::{file_walker, IndicatorCalculator};\nuse std::path::PathBuf;\n\npub fn by_path(root: PathBuf) -\u003e FlareTreeNode {\n    let mut tics: Vec\u003cBox\u003cdyn IndicatorCalculator\u003e\u003e = vec![];\n    let calculator = Box::new(GitCalculator::new(\n        GitLogConfig::default().include_merges(true).since_years(3),\n        true,\n    ));\n\n    tics.push(calculator);\n\n    let mut tree = file_walker::walk_directory(\u0026root, \u0026mut tics).unwrap();\n\n    for tic in tics {\n        if let Some(metadata) = tic.metadata().unwrap() {\n            tree.add_data(tic.name() + \"_meta\", metadata);\n        }\n    }\n\n    return tree;\n}\n```\n\nCopyright 2019 Kornelis Sietsma\n\nCopyright © 2021 Inherd Group\n\nLicensed under the Apache License, Version 2.0 - see LICENSE.txt for details\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodernizing%2Fgit-scanner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmodernizing%2Fgit-scanner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmodernizing%2Fgit-scanner/lists"}