{"id":17087931,"url":"https://github.com/geraintluff/git-mine","last_synced_at":"2026-05-14T21:02:48.675Z","repository":{"id":66040930,"uuid":"56008938","full_name":"geraintluff/git-mine","owner":"geraintluff","description":"Amends Git's current HEAD to minimise the commit ID","archived":false,"fork":false,"pushed_at":"2022-02-18T12:15:18.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-28T21:18:25.530Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/geraintluff.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-11T21:28:05.000Z","updated_at":"2022-02-18T10:54:24.000Z","dependencies_parsed_at":"2023-09-01T15:02:16.599Z","dependency_job_id":null,"html_url":"https://github.com/geraintluff/git-mine","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/geraintluff%2Fgit-mine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geraintluff%2Fgit-mine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geraintluff%2Fgit-mine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/geraintluff%2Fgit-mine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/geraintluff","download_url":"https://codeload.github.com/geraintluff/git-mine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245119592,"owners_count":20563763,"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":[],"created_at":"2024-10-14T13:35:27.391Z","updated_at":"2026-05-14T21:02:48.608Z","avatar_url":"https://github.com/geraintluff.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-mine\n\nPython script that amends Git's current HEAD to minimise the commit ID.\n\n## Usage:\n\nThe only argument is the limit (in hex) below which the tool will exit.\n\n```\n./git-mine.py 000001\n```\n\nThis will exit when the commit ID for HEAD starts `000000...`\n\nIf the limit is omitted, then it defaults to `0001` (first 16 bits zeros).\n\nThe limit is a lexical comparison on the hex representation - to continue infinitely, specify `-` as the limit.\n\n## Use as `post-commit` hook\n\nIf you'd like this script to run after every commit, copy `git-mine.py` into the file `.git/hooks/post-commit`.  It must be marked as executable.\n\nIf you want to specify a limit other than the default, you can write a script for `.git/hooks/post-commit` (must be executable) that provides it:\n\n```\n#!/bin/bash\n/location/to/git-mine.py 0001\n```\n\nAlternatively, you could just change `DEFAULT_LIMIT` in the source.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeraintluff%2Fgit-mine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeraintluff%2Fgit-mine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeraintluff%2Fgit-mine/lists"}