{"id":17138505,"url":"https://github.com/kevinburke/differ","last_synced_at":"2025-04-13T09:52:49.345Z","repository":{"id":57484742,"uuid":"84047263","full_name":"kevinburke/differ","owner":"kevinburke","description":null,"archived":false,"fork":false,"pushed_at":"2023-11-20T05:39:35.000Z","size":29,"stargazers_count":13,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T01:21:56.538Z","etag":null,"topics":["build-automation","diff","git","golang"],"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/kevinburke.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":"2017-03-06T08:15:20.000Z","updated_at":"2023-12-04T15:02:57.000Z","dependencies_parsed_at":"2022-09-02T00:01:44.663Z","dependency_job_id":null,"html_url":"https://github.com/kevinburke/differ","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinburke%2Fdiffer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinburke%2Fdiffer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinburke%2Fdiffer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevinburke%2Fdiffer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevinburke","download_url":"https://codeload.github.com/kevinburke/differ/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248695303,"owners_count":21146952,"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":["build-automation","diff","git","golang"],"created_at":"2024-10-14T20:09:47.838Z","updated_at":"2025-04-13T09:52:49.303Z","avatar_url":"https://github.com/kevinburke.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# differ\n\nDiffer makes it easy to run a command and error if it generated a change in a\ngit worktree. You can use this in tests or the build process to verify that\na given build step was run correctly. For example you may want to verify that\nall files in a Go project have run `go fmt`. Run:\n\n```\ndiffer go fmt ./...\n```\n\nThis will execute `go fmt ./...` and error if it modifies any file tracked by\nGit.\n\nOther uses:\n\n- Restore and revendor all vendored libraries and error if a git diff is\ngenerated.\n- Check whether new CSS files have been generated from SCSS, HTML files from\n  Markdown, JS files from Coffeescript, or any other compilation step.\n\n## Usage\n\nRun the same command you would usually run but put `differ` before it, for\nexample:\n\n```\ndiffer go generate ./...\n```\n\ndiffer will exit with a non-zero return code if:\n\n- your command exits with an error\n\n- \"git status\" errors, for example if you run it in a directory that is not\n  a Git repository.\n\n- \"git status\" says that there are untracked or modified files present\n\n## Installation\n\nFind your target operating system (darwin, windows, linux) and desired bin\ndirectory, and modify the command below as appropriate:\n\n    curl --silent --location --output /usr/local/bin/differ https://github.com/kevinburke/differ/releases/download/1.2/differ-linux-amd64 \u0026\u0026 chmod 755 /usr/local/bin/differ\n\nOn Travis, you may want to create `$HOME/bin` and write to that, since\n/usr/local/bin isn't writable with their container-based infrastructure.\n\nThe latest version is 1.2.\n\nIf you have a Go development environment, you can also install via source code:\n\n    go install github.com/kevinburke/differ@1.2\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinburke%2Fdiffer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevinburke%2Fdiffer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevinburke%2Fdiffer/lists"}