{"id":16037908,"url":"https://github.com/joseluisq/gitson","last_synced_at":"2026-05-08T15:53:17.746Z","repository":{"id":146282698,"uuid":"325685867","full_name":"joseluisq/gitson","owner":"joseluisq","description":"Get some Git commands output in JSON format.","archived":false,"fork":false,"pushed_at":"2021-01-02T22:02:10.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T05:36:13.491Z","etag":null,"topics":["git","golang","golang-package","json"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joseluisq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2020-12-31T01:34:32.000Z","updated_at":"2021-01-01T23:31:11.000Z","dependencies_parsed_at":"2023-10-15T23:24:54.303Z","dependency_job_id":null,"html_url":"https://github.com/joseluisq/gitson","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"ba6af5a842d5b914919dcdcb3cd382ed583dda97"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fgitson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fgitson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fgitson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joseluisq%2Fgitson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joseluisq","download_url":"https://codeload.github.com/joseluisq/gitson/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247294463,"owners_count":20915338,"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":["git","golang","golang-package","json"],"created_at":"2024-10-08T22:22:15.117Z","updated_at":"2026-05-08T15:53:12.710Z","avatar_url":"https://github.com/joseluisq.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gitson\n\n\u003e Get some Git commands output in JSON format.\n\nWIP project under **active** development.\n\n## Usage\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n    \"os\"\n\n    git \"github.com/joseluisq/gitson\"\n)\n\nfunc main() {\n    // Get `git log` output in JSON format\n\tjsonb, err := git.Log(os.Args, \"/home/joseluisq/my-git-repo\")\n\tif err != nil {\n\t\tfmt.Println(err)\n\t\tos.Exit(1)\n\t}\n\tfmt.Println(string(jsonb))\n}\n```\n\n#### JSON Output example\n\n```json\n[\n    {\n        \"hash\": \"7cb004b7bb0da0e693a0d92b28832e18b39fc3c4\",\n        \"hash_short\": \"7cb004b\",\n        \"tree_hash\": \"1e86b094c645dd6fafbf831862b2a625463766d2\",\n        \"tree_hash_short\": \"1e86b09\",\n        \"parent_hashes\": \"\",\n        \"parent_hashes_short\": \"\",\n        \"author\": \"Jose Quintana\",\n        \"author_mailmap\": \"Jose Quintana\",\n        \"author_email\": \"joseluisq@localhost\",\n        \"author_email_mailmap\": \"joseluisq@localhost\",\n        \"author_email_local\": \"joseluisq\",\n        \"author_local\": \"joseluisq\",\n        \"author_date\": \"Thu Dec 31 02:40:56 2020 +0100\",\n        \"author_date_rfc2822\": \"Thu, 31 Dec 2020 02:40:56 +0100\",\n        \"author_date_relative\": \"2 days ago\",\n        \"author_date_timestamp\": \"1609378856\",\n        \"author_date_iso\": \"2020-12-31 02:40:56 +0100\",\n        \"author_date_iso8601\": \"2020-12-31T02:40:56+01:00\",\n        \"author_date_short\": \"2020-12-31\",\n        \"committer\": \"Jose Quintana\",\n        \"committer_mailmap\": \"Jose Quintana\",\n        \"committer_email\": \"joseluisq@localhost\",\n        \"committer_email_mailmap\": \"joseluisq@localhost\",\n        \"committer_email_local\": \"joseluisq\",\n        \"committer_email_local_mailmap\": \"joseluisq\",\n        \"committer_date\": \"Thu Dec 31 02:40:56 2020 +0100\",\n        \"committer_date_rfc2822\": \"Thu, 31 Dec 2020 02:40:56 +0100\",\n        \"committer_date_relative\": \"2 days ago\",\n        \"committer_date_timestamp\": \"1609378856\",\n        \"committer_date_iso\": \"2020-12-31 02:40:56 +0100\",\n        \"committer_date_iso8601\": \"2020-12-31T02:40:56+01:00\",\n        \"committer_date_short\": \"2020-12-31\",\n        \"ref_names\": \" (HEAD -\u003e master, origin/master, origin/HEAD)\",\n        \"ref_names_no_wrapping\": \"HEAD -\u003e master, origin/master, origin/HEAD\",\n        \"ref_names_given\": \"HEAD\",\n        \"encoding\": \"\",\n        \"subject\": \"feat-git-log-output-as-json\",\n        \"body\": \"\",\n        \"raw_body\": \"feat: git log output as json\\n\",\n        \"notes\": \"\",\n        \"gpg_raw_verification\": \"gpg: Signature made Thu Dec 31 02:41:36 2020 CET\\ngpg:                using RSA key 12E57137E61B7DE5395639909ED7C351C78E1F64\\ngpg:                issuer \\\"joseluisq@localhost\\\"\\ngpg: Good signature from \\\"Jose Quintana \u003cjoseluisq@localhost\u003e\\\" [ultimate]\\n\",\n        \"gpg_verification_code\": \"G\",\n        \"gpg_signer_name\": \"Jose Quintana \u003cjoseluisq@localhost\u003e\",\n        \"gpg_key\": \"9ED7C351C78E1F64\",\n        \"gpg_key_fingerprint\": \"12E57137E61B7DE5395639909ED7C351C78E1F64\",\n        \"gpg_key_fingerprint_subkey\": \"12E57137E61B7DE5395639909ED7C351C78E1F64\",\n        \"gpg_key_trust_level\": \"ultimate\",\n        \"reflog_selector\": \"\",\n        \"reflog_selector_short\": \"\",\n        \"reflog_identity_name\": \"\",\n        \"reflog_identity_name_mailmap\": \"\",\n        \"reflog_identity_email\": \"\",\n        \"reflog_identity_email_mailmap\": \"\",\n        \"reflog_subject\": \"\"\n    }\n]\n```\n\n## Contributions\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in current work by you, as defined in the Apache-2.0 license, shall be dual licensed as described below, without any additional terms or conditions.\n\nFeel free to send some [Pull request](https://github.com/joseluisq/gitson/pulls) or [issue](https://github.com/joseluisq/gitson/issues).\n\n## License\n\nThis work is primarily distributed under the terms of both the [MIT license](LICENSE-MIT) and the [Apache License (Version 2.0)](LICENSE-APACHE).\n\n© 2020-present [Jose Quintana](https://git.io/joseluisq)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoseluisq%2Fgitson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoseluisq%2Fgitson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoseluisq%2Fgitson/lists"}