{"id":16306173,"url":"https://github.com/songmu/gitmock","last_synced_at":"2025-04-12T13:44:19.772Z","repository":{"id":57480805,"uuid":"57429697","full_name":"Songmu/gitmock","owner":"Songmu","description":null,"archived":false,"fork":false,"pushed_at":"2022-08-14T17:24:05.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-16T02:19:26.104Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Songmu.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2016-04-30T06:11:58.000Z","updated_at":"2022-08-14T17:07:39.000Z","dependencies_parsed_at":"2022-09-26T17:41:22.067Z","dependency_job_id":null,"html_url":"https://github.com/Songmu/gitmock","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Songmu%2Fgitmock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Songmu%2Fgitmock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Songmu%2Fgitmock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Songmu%2Fgitmock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Songmu","download_url":"https://codeload.github.com/Songmu/gitmock/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248574813,"owners_count":21127069,"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-10T21:09:50.860Z","updated_at":"2025-04-12T13:44:19.754Z","avatar_url":"https://github.com/Songmu.png","language":"Go","readme":"gitmock\n=======\n\n[![Test Status](https://github.com/Songmu/gitmock/workflows/test/badge.svg?branch=main)][actions]\n[![codecov.io](https://codecov.io/github/Songmu/gitmock/coverage.svg?branch=main)][codecov]\n[![MIT License](https://img.shields.io/github/license/Songmu/gitmock)][license]\n[![PkgGoDev](https://pkg.go.dev/badge/github.com/Songmu/gitmock)][PkgGoDev]\n\n[actions]: https://github.com/Songmu/gitmock/actions?workflow=test\n[codecov]: https://codecov.io/github/Songmu/gitmock?branch=main\n[license]: https://github.com/Songmu/gitmock/blob/main/LICENSE\n[PkgGoDev]: https://pkg.go.dev/github.com/Songmu/gitmock\n\n## Description\n\nCreate mock git repository for testing.\n\n## Synopsis\n\n```go\ngm, err := gitmock.New(\"\")\nif err != nil {\n    log.Fatal(err)\n}\ndefer os.RemoveAll(gm.RepoPath())\ngm.Init() // shortcut of `gm.Do(\"init\")\nfile := \"hoge/fuga.txt\"\ngm.PutFile(file, \"aaa\\n\")\ngm.Add(file)\ngm.Commit(\"-m\", \"initial commit\")\nout, stderr, err := gm.Status()\n```\n\n## Author\n\n[Songmu](https://github.com/Songmu)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsongmu%2Fgitmock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsongmu%2Fgitmock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsongmu%2Fgitmock/lists"}