{"id":13771875,"url":"https://github.com/bradleyfalzon/revgrep","last_synced_at":"2025-07-29T01:32:42.149Z","repository":{"id":55660835,"uuid":"68601937","full_name":"bradleyfalzon/revgrep","owner":"bradleyfalzon","description":"Filters output from static analysis tools, showing only recently changed lines of code","archived":false,"fork":false,"pushed_at":"2024-04-09T23:44:59.000Z","size":44,"stargazers_count":103,"open_issues_count":7,"forks_count":14,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-05T05:51:12.500Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/bradleyfalzon.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-09-19T12:06:38.000Z","updated_at":"2024-05-16T20:07:29.000Z","dependencies_parsed_at":"2024-01-12T21:20:06.666Z","dependency_job_id":"4d78bf96-2a18-4a65-a9ec-d20ac85f1679","html_url":"https://github.com/bradleyfalzon/revgrep","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/bradleyfalzon/revgrep","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradleyfalzon%2Frevgrep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradleyfalzon%2Frevgrep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradleyfalzon%2Frevgrep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradleyfalzon%2Frevgrep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bradleyfalzon","download_url":"https://codeload.github.com/bradleyfalzon/revgrep/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bradleyfalzon%2Frevgrep/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267616582,"owners_count":24116155,"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","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-08-03T17:00:56.959Z","updated_at":"2025-07-29T01:32:41.886Z","avatar_url":"https://github.com/bradleyfalzon.png","language":"Go","funding_links":[],"categories":["Linters Helper Tools"],"sub_categories":["Misc"],"readme":"# Overview\n\n[![Build Status](https://travis-ci.org/bradleyfalzon/revgrep.svg?branch=master)](https://travis-ci.org/bradleyfalzon/revgrep) [![Coverage\nStatus](https://coveralls.io/repos/github/bradleyfalzon/revgrep/badge.svg?branch=master)](https://coveralls.io/github/bradleyfalzon/revgrep?branch=master) [![GoDoc](https://godoc.org/github.com/bradleyfalzon/revgrep?status.svg)](https://godoc.org/github.com/bradleyfalzon/revgrep)\n\n`revgrep` is a CLI tool used to filter static analysis tools to only lines changed based on a commit reference.\n\n# Install\n\n```bash\ngo get -u github.com/bradleyfalzon/revgrep/...\n```\n\n# Usage\n\nIn the scenario below, a change was made causing a warning in `go vet` on line 5, but `go vet` will show all warnings.\nUsing `revgrep`, you can show only warnings for lines of code that have been changed (in this case, hiding line 6).\n\n```bash\n[user@host dir (master)]$ go vet\nmain.go:5: missing argument for Sprintf(\"%s\"): format reads arg 1, have only 0 args\nmain.go:6: missing argument for Sprintf(\"%s\"): format reads arg 1, have only 0 args\n[user@host dir (master)]$ go vet |\u0026 revgrep\nmain.go:5: missing argument for Sprintf(\"%s\"): format reads arg 1, have only 0 args\n```\n\n`|\u0026` is shown above as many static analysis programs write to `stderr`, not `stdout`, `|\u0026` combines both `stderr` and\n`stdout`. It could also be achieved with `go vet 2\u003e\u00261 | revgrep`.\n\n`revgrep` CLI tool will return an exit status of 1 if any issues match, else it will return 0. Consider using\n`${PIPESTATUS[0]}` for the exit status of the `go vet` command in the above example.\n\n```\nUsage: revgrep [options] [from-rev] [to-rev]\n\nfrom-rev filters issues to lines changed since (and including) this revision\n  to-rev filters issues to lines changed since (and including) this revision, requires \u003cfrom-rev\u003e\n\n  If no revisions are given, and there are unstaged changes or untracked files, only those changes are shown\n  If no revisions are given, and there are no unstaged changes or untracked files, only changes in HEAD~ are shown\n  If from-rev is given and to-rev is not, only changes between from-rev and HEAD are shown.\n\n    -d    Show debug output\n      -regexp string\n              Regexp to match path, line number, optional column number, and message\n```\n\n# Other Examples\n\nIssues between branches:\n```bash\n[user@host dir (feature/branch)]$ go vet |\u0026 revgrep master\n```\n\nIssues since last push:\n```bash\n[user@host dir (master)]$ go vet |\u0026 revgrep origin/master\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradleyfalzon%2Frevgrep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbradleyfalzon%2Frevgrep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbradleyfalzon%2Frevgrep/lists"}