{"id":23033976,"url":"https://github.com/olback/lgc-rs","last_synced_at":"2025-08-14T15:33:48.207Z","repository":{"id":35022661,"uuid":"197291333","full_name":"olback/lgc-rs","owner":"olback","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-22T20:26:50.000Z","size":34,"stargazers_count":8,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-10T11:36:31.983Z","etag":null,"topics":["author","commit","git","git-hash","git2-rs","library","rust"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/last-git-commit","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/olback.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-07-17T01:21:14.000Z","updated_at":"2024-04-23T15:19:29.000Z","dependencies_parsed_at":"2022-08-08T04:00:37.152Z","dependency_job_id":null,"html_url":"https://github.com/olback/lgc-rs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olback%2Flgc-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olback%2Flgc-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olback%2Flgc-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olback%2Flgc-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olback","download_url":"https://codeload.github.com/olback/lgc-rs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229843426,"owners_count":18132907,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["author","commit","git","git-hash","git2-rs","library","rust"],"created_at":"2024-12-15T16:28:29.753Z","updated_at":"2024-12-15T16:28:30.429Z","avatar_url":"https://github.com/olback.png","language":"Rust","readme":"# LastGitCommit-rs\nA simple wrapper arround [`git2-rs`](https://github.com/rust-lang/git2-rs) to easily get info about the last commit. Useful when you want to show the last commit message or the current git hash.\n\n[![CircleCI](https://circleci.com/gh/olback/lgc-rs.svg?style=svg)](https://circleci.com/gh/olback/lgc-rs) [![docs](https://docs.rs/last-git-commit/badge.svg)](https://docs.rs/last-git-commit) [![](https://meritbadge.herokuapp.com/last-git-commit)](https://crates.io/crates/last-git-commit)\n\n### Simple Git Hash Example\n```rust\nuse last_git_commit::LastGitCommit;\n\nlet lgc = LastGitCommit::new().build().unwrap();\nlet long = lgc.id().long();\nlet short = lgc.id().short();\nlet range = lgc.id().range(0..3).unwrap();\n\nprintln!(\"Long: {}\", long); // \"c4f94258c12b8905f3d57f879ae1171ce367cd29\"\nprintln!(\"Short: {}\", short); // \"c4f9425\"\nprintln!(\"Range: {}\", range); // \"c4f\"\n```\n\n#### Please see the [documentation](https://docs.rs/last-git-commit) and [examples](https://github.com/olback/lgc-rs/tree/master/examples).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folback%2Flgc-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folback%2Flgc-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folback%2Flgc-rs/lists"}