{"id":26220678,"url":"https://github.com/chocolatey-community/chocolatey-diff","last_synced_at":"2025-04-16T04:31:33.881Z","repository":{"id":48699289,"uuid":"282695836","full_name":"chocolatey-community/chocolatey-diff","owner":"chocolatey-community","description":"Diff module for Chocolatey","archived":false,"fork":false,"pushed_at":"2021-07-13T21:33:09.000Z","size":141,"stargazers_count":5,"open_issues_count":9,"forks_count":6,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-29T04:51:16.801Z","etag":null,"topics":["chocolatey","chocolatey-diff","hacktoberfest","powershell","powershell-module"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","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/chocolatey-community.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-26T17:07:20.000Z","updated_at":"2022-07-02T05:12:12.000Z","dependencies_parsed_at":"2022-08-26T09:50:09.245Z","dependency_job_id":null,"html_url":"https://github.com/chocolatey-community/chocolatey-diff","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chocolatey-community%2Fchocolatey-diff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chocolatey-community%2Fchocolatey-diff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chocolatey-community%2Fchocolatey-diff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chocolatey-community%2Fchocolatey-diff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chocolatey-community","download_url":"https://codeload.github.com/chocolatey-community/chocolatey-diff/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249195277,"owners_count":21228162,"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":["chocolatey","chocolatey-diff","hacktoberfest","powershell","powershell-module"],"created_at":"2025-03-12T15:18:43.892Z","updated_at":"2025-04-16T04:31:33.863Z","avatar_url":"https://github.com/chocolatey-community.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chocolatey Diff utility\n\n[![build](https://github.com/chocolatey-community/chocolatey-diff/workflows/build/badge.svg)](https://github.com/chocolatey-community/chocolatey-diff/actions?query=workflow%3Abuild)\n[![Codecov Report](https://img.shields.io/codecov/c/github/chocolatey-community/chocolatey-diff.svg?logo=codecov)](https://codecov.io/gh/chocolatey-community/chocolatey-diff)\n\nThis Powershell module allows you to view the diff of two package versions.\n\n## Required - Powershell 6.0+\n\n### On Windows\n\nEasiest:\n\n```powershell\nchoco install powershell-core\n```\n\nOther options:\n\nSee this [document](https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-windows?view=powershell-7) from Microsoft to install POSH on Windows\n\n### On Mac\n\nEasiest:\n\n```sh\nbrew cask install powershell\n```\n\nOther options:\n\nSee this [document](https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-macos?view=powershell-7) from Microsoft to install POSH on macOS\n\n### On Linux\n\nSee this [document](https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-linux?view=powershell-7) from Microsoft to install POSH on Linux.\n\n## Optional - diffutils\n\nThis software allows you to use some diff-tool (such as diff or meld):\nYou can always specify the the diff-tool to use manually by utilizing the `env:difftool` variable.\n\n### On Windows\n\nNOTE: Required for `-useDiffTool` parameter\n\n```powershell\nchoco install git\n```\n\n### On Linux/Mac\n\nensure at least `diff` is installed and available through PATH environment variable.\n\n### Optional\n\nIf you want to use a different diff-tool, set `env:difftool`:\n\n```powershell\n$env:difftool = \"C:\\Program Files (x86)\\Meld\\meld.exe\"\nImport-Module .\\chocolatey-diff\\chocolatey-diff.psm1\nGet-ChocolateyPackageDiff ...\n```\n\nBy default, `C:\\Program Files\\Git\\usr\\bin\\diff.exe` is used on Windows OS and `diff` on Unix-like systems.\n\n## Example / Usage\n\n### Syntax\n\nThe Get-ChocolateyPacageDiff Syntax:\n\n```powershell\nGet-ChocolateyPackageDiff [-packageName] \u003cstring\u003e [[-oldPackageVersion] \u003cstring\u003e] [[-newPackageVersion] \u003cstring\u003e] [-downloadLocation \u003cstring\u003e] [-keepFiles] [-ignoreExpectedChanges] [\u003cCommonParameters\u003e]\n\nGet-ChocolateyPackageDiff [-packageName] \u003cstring\u003e [[-oldPackageVersion] \u003cstring\u003e] [[-newPackageVersion] \u003cstring\u003e] [-downloadLocation \u003cstring\u003e] [-keepFiles] [-compareFolder] [-useDiffTool] [\u003cCommonParameters\u003e]\n```\n\n### Example: exact source and target version given\n\n```powershell\nImport-Module .\\chocolatey-diff\\chocolatey-diff.psm1\nPS \u003e Get-ChocolateyPackageDiff -packageName grafana -oldPackageVersion 7.1.0 -newPackageVersion 7.1.1\nDiff for \\legal\\LICENSE.txt:\nDiff for \\legal\\VERIFICATION.txt:\n  32-Bit: \u003chttps://dl.grafana.com/oss/release/grafana-7.1.1.windows-amd64.zip\u003e\n  checksum32: DE586C6232CE9026DF097AFE3AF843F0097AB578409BE634F5BA4420FF3E786E\n  32-Bit: \u003chttps://dl.grafana.com/oss/release/grafana-7.1.0.windows-amd64.zip\u003e\n  checksum32: 84961388ACDB8134E29558EF80AD989178BE95098808FB75DDD0AD3268BE570C\nDiff for \\tools\\chocolateyinstall.ps1:\n  file           = \"$toolsdir\\grafana-7.1.1.windows-amd64.zip\"\n  file           = \"$toolsdir\\grafana-7.1.0.windows-amd64.zip\"\nWARNING: \\tools\\grafana-7.1.0.windows-amd64.zip is binary, ignoring.\nDiff for \\grafana.nuspec:\n    \u003cversion\u003e7.1.1\u003c/version\u003e\n    \u003cversion\u003e7.1.0\u003c/version\u003e\nWARNING: \\tools\\grafana-7.1.1.windows-amd64.zip is binary, ignoring.\n```\n\n### Example: single package ID as input\n\nLatest approved and unapproved versions are selected automatically.\n\n```powershell\nImport-Module .\\chocolatey-diff\\chocolatey-diff.psm1\nPS \u003e Get-ChocolateyPackageDiff elasticsearch\nDiff for \\tools\\chocolateyBeforeModify.ps1:\n$version      = \"7.8.1\"\n$version      = \"7.8.0\"\nDiff for \\tools\\chocolateyInstall.ps1:\n$url          = 'https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.8.1-windows-x86_64.zip'\n$checksum     = '800720331e64f091f87bb5ca1755c948c75718cb3723497d861b28fab2067e7a'\n$version      = \"7.8.1\"\n$url          = 'https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-7.8.0-windows-x86_64.zip'\n$checksum     = 'e6e8160fcb0837cf2d5602e9c5ecb637b9cb46b7e333dfd681f65a235eed85d4'\n$version      = \"7.8.0\"\nDiff for \\tools\\Uninstall-ChocolateyPath.psm1:\nDiff for \\elasticsearch.nuspec:\n    \u003cversion\u003e7.8.1\u003c/version\u003e\n    \u003creleaseNotes\u003ehttps://www.elastic.co/guide/en/elasticsearch/reference/7.8/release-notes-7.8.1.html\u003c/releaseNotes\u003e\n    \u003cversion\u003e7.8.0\u003c/version\u003e\n    \u003creleaseNotes\u003ehttps://www.elastic.co/guide/en/elasticsearch/reference/7.8/release-notes-7.8.0.html\u003c/releaseNotes\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchocolatey-community%2Fchocolatey-diff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchocolatey-community%2Fchocolatey-diff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchocolatey-community%2Fchocolatey-diff/lists"}