{"id":13495265,"url":"https://github.com/haard/gitapi","last_synced_at":"2025-03-28T16:32:06.745Z","repository":{"id":145578732,"uuid":"12803638","full_name":"haard/gitapi","owner":"haard","description":"Mirror of https://bitbucket.org/haard/gitapi","archived":false,"fork":false,"pushed_at":"2014-11-07T17:06:08.000Z","size":303,"stargazers_count":6,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-08-01T19:54:30.885Z","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/haard.png","metadata":{"files":{"readme":"README.rst","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}},"created_at":"2013-09-13T07:12:00.000Z","updated_at":"2024-05-13T14:19:08.000Z","dependencies_parsed_at":"2023-03-23T00:46:33.106Z","dependency_job_id":null,"html_url":"https://github.com/haard/gitapi","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haard%2Fgitapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haard%2Fgitapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haard%2Fgitapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haard%2Fgitapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haard","download_url":"https://codeload.github.com/haard/gitapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222395792,"owners_count":16977623,"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-31T19:01:33.015Z","updated_at":"2024-10-31T10:30:52.468Z","avatar_url":"https://github.com/haard.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"gitapi\n======\ngitapi is a pure-Python API to git, which uses the command-line\ninterface. It has a really permissive license (do whatever you want, don't\nblame me).\n\nSo far, the API supports::\n\n git init\n git branch\n git id (git log --pretty=format:%H)\n git add\n git commit\n git status\n git log\n git checkout\n git reset\n git merge (fails on conflict)\n git push\n git pull\n git fetch\n git clone\n git tags\n git tag\n\nYou also have access to the configuration (config, configbool,\nconfiglist).\n\nExample usage::\n    \u003e\u003e\u003e import gitapi\n    \u003e\u003e\u003e repo = gitapi.Repo(\"test_gitapi\") #existing folder\n    \u003e\u003e\u003e repo.git_init()\n    \u003e\u003e\u003e repo.git_add(\"file.txt\") #already created but not added file\n    \u003e\u003e\u003e repo.git_commit(\"Adding file.txt\", user=\"me \u003cme@example.com\u003e\")\n    \u003e\u003e\u003e str(repo['HEAD'].desc)\n    'Adding file.txt'\n\nInstallation\n============\n\nSuper easy::\n\n pip install gitapi\n\nEasy: download the source, make sure you have setuptools\ninstalled, and then run::\n\n python setup.py install\n\nLicense\n=======\n\nCopyright (c) Fredrik Håård\n\nDo whatever you want, don't blame me. You may also use this software\nas licensed under the MIT or BSD licenses, or the more permissive license below:\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so:\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaard%2Fgitapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaard%2Fgitapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaard%2Fgitapi/lists"}