{"id":23484863,"url":"https://github.com/raku-community-modules/git-log","last_synced_at":"2025-07-02T22:33:08.276Z","repository":{"id":152733042,"uuid":"146012040","full_name":"raku-community-modules/Git-Log","owner":"raku-community-modules","description":"Gets git-log as a Raku object","archived":false,"fork":false,"pushed_at":"2024-11-17T18:58:34.000Z","size":33,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T06:51:17.106Z","etag":null,"topics":["git","git-log","log","rakulang"],"latest_commit_sha":null,"homepage":"https://raku.land/zef:raku-community-modules/Git::Log","language":"Raku","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"artistic-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raku-community-modules.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-08-24T16:00:37.000Z","updated_at":"2024-11-30T16:58:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"be8e5d1e-cbe7-467d-b4bb-dc94106882dc","html_url":"https://github.com/raku-community-modules/Git-Log","commit_stats":{"total_commits":18,"total_committers":2,"mean_commits":9.0,"dds":0.05555555555555558,"last_synced_commit":"6d88f6f393fc8d8cd0e8a69cfaed6f37d1a2c0f2"},"previous_names":["raku-community-modules/git-log","samcv/perl6-git-log"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/raku-community-modules/Git-Log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raku-community-modules%2FGit-Log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raku-community-modules%2FGit-Log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raku-community-modules%2FGit-Log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raku-community-modules%2FGit-Log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raku-community-modules","download_url":"https://codeload.github.com/raku-community-modules/Git-Log/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raku-community-modules%2FGit-Log/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263226762,"owners_count":23433770,"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","git-log","log","rakulang"],"created_at":"2024-12-24T22:09:58.099Z","updated_at":"2025-07-02T22:33:08.251Z","avatar_url":"https://github.com/raku-community-modules.png","language":"Raku","readme":"[![Actions Status](https://github.com/raku-community-modules/Git-Log/actions/workflows/linux.yml/badge.svg)](https://github.com/raku-community-modules/Git-Log/actions) [![Actions Status](https://github.com/raku-community-modules/Git-Log/actions/workflows/macos.yml/badge.svg)](https://github.com/raku-community-modules/Git-Log/actions) [![Actions Status](https://github.com/raku-community-modules/Git-Log/actions/workflows/windows.yml/badge.svg)](https://github.com/raku-community-modules/Git-Log/actions)\n\nNAME\n====\n\nGit::Log - Gets the git log as a Raku object\n\nSYNOPSIS\n========\n\nGets the git log as a Raku object\n\nDESCRIPTION\n===========\n\nThe first argument is the command line args wanted to be passed into `git log`. Optionally you can also get the files changes as well as the number of lines added or deleted.\n\nReturns an array of hashes in the following format: `ID =\u003e \"df0c229ad6ba293c67724379bcd3d55af6ea47a0\", AuthorName =\u003e \"Author's Name\", AuthorEmail =\u003e \"sample.email@not-a.url\" ...`\n\nIf the option :get-changes is used (off by default) it will also add a 'changes' key in the following format: `changes =\u003e { $[ { filename =\u003e 'myfile.txt', added =\u003e 10, deleted =\u003e 5 }, ... ] }`\n\nIf there is a field that you need that is not offered, then you can supply an array, :@fields. Format is an array of pairs: `ID =\u003e '%H', AuthorName =\u003e '%an' ...` you can look for more [here](https://git-scm.com/docs/pretty-formats).\n\nThese are the default fields:\n\n```raku\nmy @fields-default =\n  ID          =\u003e '%H',\n  AuthorName  =\u003e '%an',\n  AuthorEmail =\u003e '%ae',\n  AuthorDate  =\u003e '%aI',\n  Subject     =\u003e '%s',\n  Body        =\u003e '%b'\n;\n```\n\nEXAMPLES\n========\n\n```raku\n# Gets the git log for the specified repository,\n# from versions 2018.06 to main\ngit-log(:path($path.IO), '2018.06..main')\n\n# Gets the git log for the current directory, and does I\u003cnot\u003e get the files\n# changed in that commit\ngit-log(:!get-changes)\n```\n\n### sub git-log\n\n```raku\nsub git-log(\n    *@args,\n    :@fields = Code.new,\n    IO::Path :$path,\n    Bool:D :$get-changes = Bool::False,\n    Bool:D :$date-time = Bool::False\n) returns Mu\n```\n\ngit-log's first argument is an array that is passed to C\u003cgit log\u003e and optionally you can provide a path so a directory other than the current are used.\n\nAUTHOR\n======\n\nSamantha McVey\n\nSource can be located at: https://github.com/raku-community-modules/Git-Log . Comments and Pull Requests are welcome.\n\nCOPYRIGHT AND LICENSE\n=====================\n\nCopyright 2018 Samantha McVey\n\nCopyright 2024 The Raku Community\n\nThis library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraku-community-modules%2Fgit-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraku-community-modules%2Fgit-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraku-community-modules%2Fgit-log/lists"}