The test_mockgit.sh script runs all these commands and populates a dummy mockgit directory with files for testing the commit command.
cargo build cargo run --bin jit initOR specify a directory: cargo run --bin jit init
cargo run --bin jit commitThere is also a simple version of cat-file, which is its own standalone executable and is different from git's cat-file. It inflates object contents and allows the user to pass the object path on the command line, rather than requiring the object ID as an argument. For development/debugging purposes.
Since this project interoperates with git, the normal git cat-file can be used with no problem.
Example usage:
cargo run --bin cat-file .git/objects/AB/CDE......F
And this can be further piped through <hexdump -C> to inspect the bytes.