Ray's Knowledge Base
Unlock

Implement rgit behavior natively; call git only in tests as an oracle

PreferenceVerified 1 Oct 2026Holds project: rgit
Preference. A rule, why it holds, and how to apply it.

Rule#

Implement each rgit behavior in rgit's own code. Do not start a git process in production code. Tests can run git to compare the output.

Why#

The user does not want rgit users to depend on an external Git process.

How to apply#

When a behavior is missing, port it or write it natively. Use real git only in the test suite, as the comparison oracle.