{"id":15475346,"url":"https://github.com/dhellmann/git-nit","last_synced_at":"2025-07-30T11:31:05.684Z","repository":{"id":57434753,"uuid":"131194945","full_name":"dhellmann/git-nit","owner":"dhellmann","description":"tool for dealing with nits on gerrit reviews","archived":false,"fork":false,"pushed_at":"2018-04-27T17:49:09.000Z","size":22,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-30T20:53:40.824Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dhellmann.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.rst","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-26T18:22:19.000Z","updated_at":"2021-11-22T21:13:57.000Z","dependencies_parsed_at":"2022-08-27T22:32:00.538Z","dependency_job_id":null,"html_url":"https://github.com/dhellmann/git-nit","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhellmann%2Fgit-nit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhellmann%2Fgit-nit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhellmann%2Fgit-nit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dhellmann%2Fgit-nit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dhellmann","download_url":"https://codeload.github.com/dhellmann/git-nit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228128898,"owners_count":17873865,"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-02T03:11:19.504Z","updated_at":"2024-12-04T14:29:43.159Z","avatar_url":"https://github.com/dhellmann.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"=========\n git-nit\n=========\n\nA git command for fixing nit-picky changes on gerrit reviews.\n\ngit-nit is a tool that helps grabbing existing reviews on gerrit and\nlayering on a new patch to fix nits.\n\nNormally review comments are left on the patch in the web UI or via\ngertty. For really small suggestions, however, it is nicer to just\npropose the update either as a new revision of a patch or as a\nfollow-up patch. git-nit helps you do that by making it easier to grab\nthe patch being reviewed in a local copy of the repository. It\nautomates the steps of cloning the repository to a new directory,\nconfiguring git-review, then downloading the patch in\nquestion. Running one command will set you up to help the person whose\ncode you are reviewing.\n\nInstalling\n==========\n\nInstall git-nit with pip::\n\n  $ pip install --user git-nit\n\nUsing\n=====\n\nTo clone a patch to a local working directory, pass the URL of the\npatch as the first argument.\n\n::\n\n  $ git nit https://review.openstack.org/#/c/564559/\n  release-tools-564559-finish-moving-announce.sh-to-releases-repo-by-deleting-it\n  Cloning openstack-infra/release-tools into ./release-tools-564559-finish-moving-announce.sh-to-releases-repo-by-deleting-it\n  git clone git://git.openstack.org/openstack-infra/release-tools release-tools-564559-finish-moving-announce.sh-to-releases-repo-by-deleting-it\n  Cloning into 'release-tools-564559-finish-moving-announce.sh-to-releases-repo-by-deleting-it'...\n  remote: Counting objects: 2320, done.\n  remote: Compressing objects: 100% (995/995), done.\n  remote: Total 2320 (delta 1491), reused 2109 (delta 1312)\n  Receiving objects: 100% (2320/2320), 2.72 MiB | 1.50 MiB/s, done.\n  Resolving deltas: 100% (1491/1491), done.\n  Checking connectivity... done.\n\n  Configuring git-review\n  git review -s\n  Creating a git remote called 'gerrit' that maps to:\n     ssh://doug-hellmann@review.openstack.org:29418/openstack-infra/release-tools.git\n\n  Downloading https://review.openstack.org/#/c/564559/\n  git review -d 564559\n  Downloading refs/changes/59/564559/2 from gerrit\n  Switched to branch \"review/doug_hellmann/announce-script-fixes\"\n\n  Updating all remotes\n  git remote update\n  Fetching origin\n  remote: Counting objects: 1501, done.\n  remote: Compressing objects: 100% (659/659), done.\n  remote: Total 1501 (delta 842), reused 1501 (delta 842)\n  Receiving objects: 100% (1501/1501), 218.28 KiB | 0 bytes/s, done.\n  Resolving deltas: 100% (842/842), done.\n  From git://git.openstack.org/openstack-infra/release-tools\n   * [new ref]         refs/notes/review -\u003e refs/notes/review\n  Fetching gerrit\n\n  Patch ready in ./release-tools-564559-finish-moving-announce.sh-to-releases-repo-by-deleting-it\n\nThe URL argument can use the /#/c \"fragment\" form or it can use the\nsimplified form ``https://review.openstack.org/564559/``.\n\nIt can also include a patchset number if the goal is to download a\ndraft older than the most recent patchset.\n\n::\n\n  $ git nit  https://review.openstack.org/#/c/564559/1/\n  release-tools-564559-finish-moving-announce.sh-to-releases-repo-by-deleting-it\n  Cloning openstack-infra/release-tools into ./release-tools-564559-finish-moving-announce.sh-to-releases-repo-by-deleting-it\n  git clone git://git.openstack.org/openstack-infra/release-tools release-tools-564559-finish-moving-announce.sh-to-releases-repo-by-deleting-it\n  Cloning into 'release-tools-564559-finish-moving-announce.sh-to-releases-repo-by-deleting-it'...\n  remote: Counting objects: 2320, done.\n  remote: Compressing objects: 100% (991/991), done.\n  remote: Total 2320 (delta 1494), reused 2111 (delta 1316)\n  Receiving objects: 100% (2320/2320), 2.72 MiB | 2.23 MiB/s, done.\n  Resolving deltas: 100% (1494/1494), done.\n  Checking connectivity... done.\n\n  Configuring git-review\n  git review -s\n  Creating a git remote called 'gerrit' that maps to:\n     ssh://doug-hellmann@review.openstack.org:29418/openstack-infra/release-tools.git\n\n  Downloading https://review.openstack.org/#/c/564559/1/\n  git review -d 564559,1\n  Downloading refs/changes/59/564559/1 from gerrit\n  Switched to branch \"review/doug_hellmann/announce-script-fixes-patch1\"\n\n  Updating all remotes\n  git remote update\n  Fetching origin\n  remote: Counting objects: 1501, done.\n  remote: Compressing objects: 100% (659/659), done.\n  remote: Total 1501 (delta 842), reused 1501 (delta 842)\n  Receiving objects: 100% (1501/1501), 218.18 KiB | 0 bytes/s, done.\n  Resolving deltas: 100% (842/842), done.\n  From git://git.openstack.org/openstack-infra/release-tools\n   * [new ref]         refs/notes/review -\u003e refs/notes/review\n  Fetching gerrit\n\n  Patch ready in ./release-tools-564559-finish-moving-announce.sh-to-releases-repo-by-deleting-it\n\nUse the ``--short-name`` (or ``-s``) option to change the default behavior and\nname the output directory after the repository without including the\npatchset number and subject.\n\n::\n\n  $ git nit -s  https://review.openstack.org/#/c/564559/1/\n  Cloning openstack-infra/release-tools into release-tools\n  git clone git://git.openstack.org/openstack-infra/release-tools release-tools\n  Cloning into 'release-tools'...\n  remote: Counting objects: 2320, done.\n  remote: Compressing objects: 100% (989/989), done.\n  remote: Total 2320 (delta 1493), reused 2115 (delta 1318)\n  Receiving objects: 100% (2320/2320), 2.73 MiB | 2.24 MiB/s, done.\n  Resolving deltas: 100% (1493/1493), done.\n  Checking connectivity... done.\n\n  Configuring git-review\n  git review -s\n  Creating a git remote called 'gerrit' that maps to:\n     ssh://doug-hellmann@review.openstack.org:29418/openstack-infra/release-tools.git\n\n  Downloading https://review.openstack.org/#/c/564559/1/\n  git review -d 564559,1\n  Downloading refs/changes/59/564559/1 from gerrit\n  Switched to branch \"review/doug_hellmann/announce-script-fixes-patch1\"\n\n  Updating all remotes\n  git remote update\n  Fetching origin\n  remote: Counting objects: 1501, done.\n  remote: Compressing objects: 100% (659/659), done.\n  remote: Total 1501 (delta 842), reused 1501 (delta 842)\n  Receiving objects: 100% (1501/1501), 218.28 KiB | 0 bytes/s, done.\n  Resolving deltas: 100% (842/842), done.\n  From git://git.openstack.org/openstack-infra/release-tools\n   * [new ref]         refs/notes/review -\u003e refs/notes/review\n  Fetching gerrit\n\n  Patch ready in release-tools\n\nAfter the patch has been downloaded, move into the new directory and\nmake the relevant changes, then use ``git review`` to post the new\npatchset. You can update the existing patch with ``git commit\n--amend`` or create a new one as a series.\n\nResources\n=========\n\n* Free software: Apache license\n* Source: http://git.openstack.org/cgit/openstack/git-nit\n* Bugs: https://storyboard.openstack.org/#!/project/979\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhellmann%2Fgit-nit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdhellmann%2Fgit-nit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdhellmann%2Fgit-nit/lists"}