{"id":18083540,"url":"https://github.com/akirak/squasher","last_synced_at":"2026-04-18T01:35:04.777Z","repository":{"id":88818585,"uuid":"485466119","full_name":"akirak/squasher","owner":"akirak","description":"Squash consecutive Git commits","archived":false,"fork":false,"pushed_at":"2026-04-16T14:17:13.000Z","size":125,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-16T16:19:34.934Z","etag":null,"topics":["auto-commit","git"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akirak.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-04-25T17:20:50.000Z","updated_at":"2025-09-22T06:06:25.000Z","dependencies_parsed_at":"2026-02-09T17:09:51.324Z","dependency_job_id":null,"html_url":"https://github.com/akirak/squasher","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/akirak/squasher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akirak%2Fsquasher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akirak%2Fsquasher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akirak%2Fsquasher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akirak%2Fsquasher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akirak","download_url":"https://codeload.github.com/akirak/squasher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akirak%2Fsquasher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31953515,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"ssl_error","status_checked_at":"2026-04-18T00:39:20.671Z","response_time":62,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["auto-commit","git"],"created_at":"2024-10-31T14:08:36.479Z","updated_at":"2026-04-18T01:35:04.739Z","avatar_url":"https://github.com/akirak.png","language":"Go","readme":"* Squasher for Auto-Committed Git Repositories\n[[https://akirak.cachix.org][https://img.shields.io/badge/cachix-akirak-blue.svg]]\n\nThis is a command line program that addresses a very particular need: squash Git commits that are automatically created (e.g. using [[https://github.com/ryuslash/git-auto-commit-mode][git-auto-commit-mode]] for Emacs).\nIt squashes a consecutive sequence of commits that have the same commit message into one commit.\nIt also checks the author time of each commit, so if a commit is not authored within a certain duration (e.g. three hours) since the first commit of the sequence, it is not squashed, even if it has the same commit message.\n\nSquashing is applied to commits between the head and its remote branch (i.e. =origin/BRANCH= unless the branch has a specific remote).\n\nThis is useful for keeping the history less messy, while frequently backing up changes to the Git repository.\n** Installation\nIt is a Go program, so you can build and install the program using Go.\n\nAlternatively, you can use Nix with flakes enabled to run the program:\n\n#+begin_src sh\n  nix run github:akirak/squasher -- --help\n#+end_src\n** Usage\nSynopsis:\n\n#+begin_src sh\n  squasher [--base SHA] [--hours N] [DIR]\n#+end_src\n\nIt takes an optional positional argument, which should be a path to a Git repository.\nBy default, it is the current repository.\n\nIf =--base= is set, squashing starts from the commit instead of =origin/BRANCH=. You must give a full hash of a commit.\n\n=--hours= option specifies the duration threshold in hours.\n\nIt rewrites the history of the head branch of a Git repository, so please use it with caution.\nAs a safety net, it checks the status of the repository and aborts the operation if it is not clean.\n\nTo automate squashing, you can create a =pre-push= hook or your Git repository.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakirak%2Fsquasher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakirak%2Fsquasher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakirak%2Fsquasher/lists"}