{"id":15591640,"url":"https://github.com/starptech/branch-comparer","last_synced_at":"2025-04-30T07:27:23.262Z","repository":{"id":26507086,"uuid":"109055509","full_name":"StarpTech/branch-comparer","owner":"StarpTech","description":"Checkout multiple git branches, execute scripts and log the results","archived":false,"fork":false,"pushed_at":"2022-12-07T17:32:54.000Z","size":477,"stargazers_count":26,"open_issues_count":8,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-06T09:47:50.419Z","etag":null,"topics":["checkout","git","nodejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/StarpTech.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-10-31T21:45:46.000Z","updated_at":"2024-05-27T20:39:56.000Z","dependencies_parsed_at":"2022-08-07T12:00:37.241Z","dependency_job_id":null,"html_url":"https://github.com/StarpTech/branch-comparer","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarpTech%2Fbranch-comparer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarpTech%2Fbranch-comparer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarpTech%2Fbranch-comparer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StarpTech%2Fbranch-comparer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StarpTech","download_url":"https://codeload.github.com/StarpTech/branch-comparer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234444600,"owners_count":18833657,"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":["checkout","git","nodejs"],"created_at":"2024-10-02T23:42:12.013Z","updated_at":"2025-01-17T23:54:29.678Z","avatar_url":"https://github.com/StarpTech.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](#badge)\n[![NPM version](https://img.shields.io/npm/v/branch-comparer.svg?style=flat)](https://www.npmjs.com/package/branch-comparer)\n# branch-comparer\nCheckout multiple git branches, execute scripts and return to the origin branch.\nIdeally to run benchmarks in different branches and copy \u0026 paste the results in a PR.\n\n## Features\n\n- Select multiple branches from a list\n- Run scripts multiple times in a row\n- Execute any command synchronously\n- Return to origin branch after finish\n- Write results in files or console\n- Gitflow mode which compares current branch with master (configurable)\n\n## Installation\n```\nnpm i -g branch-comparer\n```\n## Usage\nPrint the results in the console\n```sh\nbranchcmp\n```\nPrint results in files\n```sh\nbranchcmp --file --script \"node -v\"\n```\n_Will create files in form of `branch.\u003cbranch\u003e.log` in the current working directory._\n\nRun scripts two rounds and save the results in files\n```sh\nbranchcmp --file --rounds 2 --script \"node -v\"\n```\n_Will create files in form of `branch.\u003cbranch\u003e.round-\u003cround\u003e.log` in the current working directory._\n\n## Help\n\n```\nbranchcmp -h\n```\n\n## Example\n\n![example](https://github.com/StarpTech/branch-comparer/blob/master/branchcmp.gif \"Example branchcmp\")\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarptech%2Fbranch-comparer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstarptech%2Fbranch-comparer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstarptech%2Fbranch-comparer/lists"}