https://github.com/icyphox/nit
:octocat: a Git implementation in Nim
https://github.com/icyphox/nit
git nim
Last synced: about 1 month ago
JSON representation
:octocat: a Git implementation in Nim
- Host: GitHub
- URL: https://github.com/icyphox/nit
- Owner: icyphox
- Created: 2018-05-29T15:26:51.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-06T06:06:14.000Z (about 8 years ago)
- Last Synced: 2025-10-27T04:34:46.093Z (8 months ago)
- Topics: git, nim
- Language: Nim
- Homepage:
- Size: 20.5 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nit (git + nim)
> A basic implementation of Git in Nim. Inspired by [pygit](https://github.com/benhoyt/pygit).
It currently supports the following Git commands:
- `init`
- `add`
- `commit` (WIP)
## Building
All the `.nim` files in the `src/` directory need to be compiled, like so:
```console
nim c -o bin/init src/init.nim
```
This of course, requires Nim to exist in your `PATH`.
## Note
The `.git/index` file is actually written as a binary file in Git. For the sake of simplicity, I've decided to write to it as a simple text file.
This will result in Git complaining with a:
```
error: bad signature
fatal: index file corrupt
```