Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

kuynkank/geet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

create a test repo at ./test and cd into it

mkdir test
cd test

to init a new repo

cargo run -- init test

to add (stage) the file

cargo run -- add test.txt

to make a new commit

cargo run -- commit -m "first one"

to check status

cargo run -- status

to checkout a previous commit using its hash

cargo run -- checkout a145d0486463ceb2840f5c871608f142b713736f

to clean up the repository and try these commands again

cargo run -- cleanup

todo

  • right now we can make identical commits multiple times. Check if the tree_hash is the same, if it is don't create a new commit
  • right now we can re-init a repository, disable that
  • refactor cli parser error handling using ?
  • refactor command handling code to be a group of helper functions, no more enums
  • when we make a new commit, we only change HEAD to point to it. We need to make the current branch to point to it as well

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages