{"id":13480212,"url":"https://github.com/djanderson/aho","last_synced_at":"2025-03-27T10:31:13.342Z","repository":{"id":40585024,"uuid":"375884407","full_name":"djanderson/aho","owner":"djanderson","description":"A git implementation in awk","archived":false,"fork":false,"pushed_at":"2021-10-14T05:06:17.000Z","size":1044,"stargazers_count":776,"open_issues_count":1,"forks_count":16,"subscribers_count":10,"default_branch":"main","last_synced_at":"2024-03-20T08:10:26.673Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Awk","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/djanderson.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2021-06-11T02:38:54.000Z","updated_at":"2024-03-10T06:13:18.000Z","dependencies_parsed_at":"2022-08-31T04:51:21.489Z","dependency_job_id":null,"html_url":"https://github.com/djanderson/aho","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/djanderson%2Faho","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djanderson%2Faho/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djanderson%2Faho/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/djanderson%2Faho/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/djanderson","download_url":"https://codeload.github.com/djanderson/aho/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222230721,"owners_count":16952695,"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-07-31T17:00:35.883Z","updated_at":"2024-10-30T13:31:16.238Z","avatar_url":"https://github.com/djanderson.png","language":"Awk","funding_links":[],"categories":["Awk","Books"],"sub_categories":[],"readme":"# Aho\n\nA Git implementation in AWK.\n\n![Terminal session showing aho](aho.gif)\n\n# But why?\n\nModern AWK is capable of a lot more than one-liners. This is a toy project to\nexplore some of the internals of Git and newer features of GNU AWK.\n\nIt's not intended to be useful for anything other than entertainment and\neducation.\n\n# Quickstart\n\nYou'll need `gawk` \u003e= 5.0, and I currently use `pigz` for zlib compression.\nEverything else should be provided by GNU coreutils. In other words, this\nshould run on most linuxes, not so much on BSDs/Mac.\n\n```bash\n$ source ./modpath\n$ aho init\nInitialized empty Git repository in .aho\n$ aho add -v .\nadd '.gitignore'\nadd 'LICENSE'\nadd 'README.md'\nadd 'aho'\nadd 'aho.awk'\nadd 'include/add.awk'\nadd 'include/branches.awk'\nadd 'include/config.awk'\n[...]\n$ echo \"neat\" \u003e testfile\n$ aho add -v .\nadd 'testfile'\n$ tree .aho/\n.aho/\n├── branches\n├── config\n├── description\n├── HEAD\n├── index\n├── objects\n│   ├── 16\n│   │   └── dfbb852d5efb5e1a75ad336c8f62ebb94a82f0\n│   ├── 42\n│   │   └── 2c6135819b57720ace71e3c6c97eb072b5b430\n│   ├── 51\n│   │   └── 2807153b4d4abffab8490ce97e5a164fe7de1f\n│   ├── 62\n│   │   └── 9effea54a58d8734f57d9412a5964f69578477\n│   ├── 64\n│   │   └── c66bb623af4a10aa3bca2da143c75ab4e2186f\n[...]\n└── refs\n    ├── heads\n    └── tags\n\n29 directories, 29 files\n$ GIT_DIR=.aho git ls-files --stage\n100664 d88545d4bb077b2e3fcefbddcf5bae071b426e9f 0\t.gitignore\n100664 a6ccf43e60c7876e67e3358952c0bf60a2882eef 0\tLICENSE\n100664 f88631a9692c0b9f9bc2f484c6fc68587bb90770 0\tREADME.md\n100775 8657d76021987bc2cd3c2d4c5958fdab053c6326 0\taho\n100664 f2aeb629f8513094675557138b3f83dbfa5a4895 0\taho.awk\n100664 b1c9cc72d22414a18635d33656dbc216ff774e57 0\tinclude/add.awk\n100664 512807153b4d4abffab8490ce97e5a164fe7de1f 0\tinclude/branches.awk\n100664 16dfbb852d5efb5e1a75ad336c8f62ebb94a82f0 0\tinclude/config.awk\n[...]\n```\n\n# Contributing\n\nI welcome any input that helps improve my knowledge of AWK or Git!\n\n# TODO:\n\n- [X] init\n- [X] add/rm\n- [X] status\n- [X] commit\n- [ ] reset\n- [ ] branch\n- [ ] switch\n- [X] config (read-only)\n- [ ] ls-files\n- [X] cat-file\n\nI don't plan to add network functionality to this (even though you totally\n[can](https://www.gnu.org/software/gawk/manual/gawkinet/gawkinet.html)), so no\n_clone_ or _push_.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjanderson%2Faho","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdjanderson%2Faho","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdjanderson%2Faho/lists"}