Skip to content

Repository files navigation

rgit

versiongolicense


Git stages files. rgit stages symbols.

Naming auth.go:ValidateToken commits that one function and leaves every other edit uncommitted. Anchors resolve from a syntax tree and cross-check against a language server — no line numbers, no git add -p. Underneath, rgit is git add <pathspec> && git commit at symbol granularity — hooks, filters, signing, and pre-staged work behave like plain git.

Quick start

cd /some/git/repo
rgit diff
rgit commit -m "fix(auth): reject expired" auth.go:ValidateToken

Build and runbook: HUMANS.md.

Highlights

  • Symbol anchorsFILE:NAME addresses a function, method, type, or const; @imports, @header, @toplevel reach regions no symbol owns.
  • Bare positionals — mix symbols and paths, every git pathspec form, no flags required.
  • Closed looprgit diff emits exactly the anchors rgit commit consumes.
  • Verified extents — tree-sitter resolves; a language server cross-checks; mismatch hard-fails on commit.
  • Git semantics — git exit codes, pathspecs, hooks, and config throughout.
  • Eleven grammars ship — SQL behind rgit_sql tag; anything else stages by path (docs/LIMITATIONS.md).

Documentation

DocumentContents
HUMANS.mdRun and use: install, usage, degraded mode
docs/INSTALL.mdBuild, language servers, env vars, verify, uninstall
docs/USAGE.mdCommands, argument grammar, flags
docs/ANCHORS.mdAnchor syntax, extents, special paths
docs/CODES.mdExit codes and --porcelain formats
docs/LIMITATIONS.mdWhat rgit does not do
AGENTS.mdInternals, invariants, delegation boundary
CONTRIBUTING.mdCommits, tests, dependency policy
CHANGELOG.mdRelease notes
SECURITY.mdVulnerability reporting
specs/design.mdDesign record and measurements

License

MIT © Rethunk.Tech

About

Symbol-granular git staging and commits — git add <pathspec> && git commit at the level of a single function, method, or type

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages