git-rust-0.1.0 is not a library.
Git - my implmementation of some git commands (WIP)
This is a simple implementation of some git commands in Rust. It is a work in progress and currently supports the following commands:
init: Initialize a new git repositorycat-file: Display the content of a file in the git object databasehash-object: Compute the object ID of a file and optionally store it in the git object databasels-tree: List the contents of a tree objectwrite-tree: Create a tree object from the current index
Usage
-
Make sure you have Rust installed. You can install it from here.
-
Clone this repository:
-
Build the project:
-
Run the commands:
Example
# Initialize a new git repository
# Create a new file
# Compute the object ID of the file and store it in the git object database
# Display the content of the file in the git object database
# List the contents of the tree object
# Create a tree object from the current index