Skip to content

ThomasF34/sgit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SGIT

Git-like CLI in scala

travis test status


To use sgit please make sure you have sbt installed. If not, see here

Installation

You can find the binary file in the Github release

You can also execute the following command to build the binary file. You then have to add target/scala-2.13 to your PATH.

sbt assembly

You're now able to use sgit

Usage

  • help
  • init
  • status
  • add <file>
  • commit [-m <message>] [-a <author name> ]
  • diff
  • log
  • log -p
  • log --stat
  • branch [<name>]
  • branch -av
  • tag [<name>]
  • checkout [<branch tag or commit>]
  • merge 🔨 [<branch>]
  • rebase
  • rebase i

NB: Merge algorithm is implemented but is not linked to Parser. Merge command will show an example on three given contents (I decided to focus on refactoring the architecture instead)

Test

You can run tests with the following command

sbt test

You can also see test with a coverage report with the following command (using scoverage)

sbt coverage test coverageReport