ast-grep
git-xargs
ast-grep | git-xargs | |
---|---|---|
34 | 12 | |
5,904 | 898 | |
4.2% | 1.8% | |
9.9 | 3.7 | |
6 days ago | about 1 month ago | |
Rust | Go | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ast-grep
-
Migrate to React 19 with ast-grep
This article illustrates the usage of ast-grep, a tool designed to locate and substitute patterns in your codebase, towards easing your migration to React 19.
- AST-grep(sg) AST grep based on Treesitter
-
Show HN: GritQL, a Rust CLI for rewriting source code
This looks great, thanks for building and sharing it.
Interested folks may also want to check out ast-grep:
https://github.com/ast-grep/ast-grep
-
How I build a chatbot for my OSS project, for free, without code!
ast-grep is a command-line tool that lets you search and transform code written in many programming languages using abstract syntax trees (ASTs). ASTs are data structures that capture the syntactic and semantic structure of source code. With ast-grep, you can write patterns as if you are writing ordinary code, and it will match all code that has the same syntactical structure. And if you need more power, you can use YAML, a rule system that allows you to write more sophisticated linting rules or code modifications.
- FLaNK Stack Weekly 11 Dec 2023
-
AST-grep(sg) is a CLI tool for code structural search, lint, and rewriting
I really like this - it means the tool is available to people with familiarity of any of those four distribution mechanisms.
You can also download pre-built binaries from their releases page: https://github.com/ast-grep/ast-grep/releases/tag/0.14.2
On top of that, they offer API bindings for it in three different languages:
- Rust (not yet stable): https://docs.rs/ast-grep-core/latest/ast_grep_core/
- JavaScript/TypeScript: https://ast-grep.github.io/guide/api-usage/js-api.html
- Python: https://ast-grep.github.io/guide/api-usage/py-api.html
It's rare to see a tool/library offer this depth of language support out of the box.
-
SemanticDiff now supports Rust
Is there an open source library that does this? Maybe something on top of ast-grep
git-xargs
-
Any tool for committing the same change across multiple repos?
No problem, I had the same question just the other day. There is also git-xargs https://github.com/gruntwork-io/git-xargs
-
New sponsor: Do I really need to create a separate FUNDING.yml in ALL my repositories just to get the sponsor link? This is horrible.
As mentioned earlier, try https://github.com/gruntwork-io/git-xargs, no need to reinvent the wheel!
-
How do you manage many repositories?
I've looked for a solution to bitbucket and github but found something only for github that I'm yet to test (https://github.com/gruntwork-io/git-xargs). Other solution I thought about, that could work with bitbucket and github, is holding a script in a bucket or something and tell each repository's pipeline configuration to download and run it at some point.
-
Tools/frameworks for batch patching of Ruby git repos
You could try https://github.com/gruntwork-io/git-xargs
-
Repo Structures
One problem with multi-repo is when you have to do service across a whole infrastructure (or large segments). Like patching. It's very very helpful to have a tool like https://github.com/gruntwork-io/git-xargs to help automate these things, where possible. You still end up with a crapload of PR's. So then it's helpful to have a streamlined review process for when you need to batch review PRs for a large change like this.
- CLI for updating multiple Github repositories at once
- Git-xargs CLI tool for making updates across repositories with a single command
- gruntwork-io/git-xargs
- Git-xargs: CLI tool for updating multiple GitHub repositories
What are some alternatives?
ssr.nvim - Treesitter based structural search and replace plugin for Neovim.
mergestat-lite - Query git repositories with SQL. Generate reports, perform status checks, analyze codebases. 🔍 📊
helix - A post-modern modal text editor.
protolock - Protocol Buffer companion tool. Track your .proto files and prevent changes to messages and services which impact API compatibility.
weggli - weggli is a fast and robust semantic search tool for C and C++ codebases. It is designed to help security researchers identify interesting functionality in large codebases.
gita - Manage many git repos with sanity 从容管理多个git库
git-repo-sync - Auto synchronization of remote Git repositories. Auto conflict solving. Network fail resilience. Linux & Windows support. And more.
bit - Bit is a modern Git CLI
telescope.nvim - Find, Filter, Preview, Pick. All lua, all the time.
mergestat - MergeStat enables anyone to ask questions about the history and contents of source code.
telescope-sg - Ast-grep picker for telescop.nvim
terraform-provider-github - Terraform GitHub provider