{"id":13823352,"url":"https://github.com/fujimura/git-gsub","last_synced_at":"2025-10-04T08:59:03.927Z","repository":{"id":17570838,"uuid":"20374243","full_name":"fujimura/git-gsub","owner":"fujimura","description":"A Git subcommand to do gsub in a repository","archived":false,"fork":false,"pushed_at":"2025-04-11T07:15:39.000Z","size":90,"stargazers_count":75,"open_issues_count":3,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-18T16:21:25.111Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"CyanogenMod/android_packages_apps_Nfc","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fujimura.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null}},"created_at":"2014-06-01T09:26:23.000Z","updated_at":"2025-08-06T08:22:18.000Z","dependencies_parsed_at":"2024-01-13T16:21:06.512Z","dependency_job_id":"b89cbf35-8b93-4e35-8640-001e5b7bfd88","html_url":"https://github.com/fujimura/git-gsub","commit_stats":{"total_commits":126,"total_committers":6,"mean_commits":21.0,"dds":0.06349206349206349,"last_synced_commit":"420dadf1a170893b92a1d5e00c0bd5aa1a056bc3"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/fujimura/git-gsub","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fujimura%2Fgit-gsub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fujimura%2Fgit-gsub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fujimura%2Fgit-gsub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fujimura%2Fgit-gsub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fujimura","download_url":"https://codeload.github.com/fujimura/git-gsub/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fujimura%2Fgit-gsub/sbom","scorecard":{"id":413332,"data":{"date":"2025-08-11","repo":{"name":"github.com/fujimura/git-gsub","commit":"915e04fb6b875ec475c70cfba4ca5f2d986e8b10"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 1/15 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/fujimura/git-gsub/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/fujimura/git-gsub/ci.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: MIT License: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 21 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T23:13:53.156Z","repository_id":17570838,"created_at":"2025-08-18T23:13:53.157Z","updated_at":"2025-08-18T23:13:53.157Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278289501,"owners_count":25962356,"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-10-04T02:00:05.491Z","response_time":63,"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-04T09:00:31.616Z","updated_at":"2025-10-04T08:59:03.891Z","avatar_url":"https://github.com/fujimura.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"# git-gsub\n\nA Git subcommand to do gsub in a repository\n\n## Usage\n\n```\n$ git gsub\nUsage git gsub [options] FROM TO [PATHS]\n\nOptions:\n      --snake         Substitute snake-cased expressions\n      --kebab         Substitute kebab-cased expressions\n      --camel         Substitute (upper) camel-cased expressions\n      --upper-camel   Substitute upper-camel-cased expressions\n      --lower-camel   Substitute lower-camel-cased expressions\n  -a, --all           Substitute (snake|kebab|camel)-cased expressions\n      --ruby          Substitute Ruby module and directory expressions\n  -r, --rename        Rename files with expression\n  -F, --fgrep         Interpret given pattern as a fixed string\n  -v, --version       Show version\n```\n\n## Example\n\n### Normal substutution\n\nTo substitute `Git` with `Subversion`:\n\n```\n$ git gsub Git Subversion\n```\n\nResult:\n\n```diff\ndiff --git a/README.md b/README.md\nindex 2185dbf..393dbc6 100644\n--- a/README.md\n+++ b/README.md\n@@ -1,4 +1,4 @@\n-# Git::Gsub\n+# Subversion::Gsub\n \n TODO: Write a gem description\n \ndiff --git a/bin/git-gsub b/bin/git-gsub\nindex c30f093..03b7c4c 100755\n--- a/bin/git-gsub\n+++ b/bin/git-gsub\n@@ -1,4 +1,4 @@\n #! /usr/bin/env ruby\n \n require 'git/gsub'\n-Git::Gsub.run\n+Subversion::Gsub.run\n```\n\n### Case-converting substitution\n\nTo substitute `CommonLisp` with `VisualBasic` with case-awareness:\n\n```\n$ git gsub --kebab --snake --camel CommonLisp VisualBasic\n```\n\nResult:\n\n```diff\ndiff --git a/README.md b/README.md\nindex 2185dbf..393dbc6 100644\n--- a/README.md\n+++ b/README.md\n@@ -1,4 +1,4 @@\n-# CommonLisp common_lisp common-lisp\n+# VisualBasic visual_basic visual-basic\n```\n\n### Substitute and rename file\n\nSubstitute and rename file:\n\n```\n$ git gsub --rename --camel git svn\n```\n\nResult:\n\n```diff\ndiff --git a/lib/git.rb b/lib/git.rb\ndeleted file mode 100644\nindex f0b8633..0000000\n--- a/lib/git.rb\n+++ /dev/null\n@@ -1 +0,0 @@\n-puts \"GitGsub\"\ndiff --git a/lib/svn.rb b/lib/svn.rb\nnew file mode 100644\nindex 0000000..312f137\n--- /dev/null\n+++ b/lib/svn.rb\n@@ -0,0 +1 @@\n+puts \"SvnGsub\"\n```\n\n## Installation\n\n```\n$ go install github.com/fujimura/git-gsub@latest\n```\n\n## Contributing\n\n1. Fork it ( http://github.com/fujimura/git-gsub/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffujimura%2Fgit-gsub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffujimura%2Fgit-gsub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffujimura%2Fgit-gsub/lists"}