https://github.com/markamdev/gordiff
rdiff-like tool written in Go
https://github.com/markamdev/gordiff
Last synced: 10 months ago
JSON representation
rdiff-like tool written in Go
- Host: GitHub
- URL: https://github.com/markamdev/gordiff
- Owner: markamdev
- License: apache-2.0
- Created: 2023-01-24T19:49:41.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2025-05-23T20:33:05.000Z (about 1 year ago)
- Last Synced: 2025-05-23T21:31:15.586Z (about 1 year ago)
- Language: Go
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gordiff
rdiff-like tool written in Go
## Description
This application is a simplifiled port of _rdiff_ tool available as a part of _librsync_ project [here](https://github.com/librsync/librsync). Output of this application is fully compatible with _rdiff_ so i.e. signature from _gordiff_ can be used for delta computation by _rdiff_. Due to limited functionality not all _rdiff_ files will be readable by _gordiff_.
### Currently implemented options
* _signature_ generation with _RollSum_ as weak sum and _MD4_ as strong sum
* fixed block size of 2kB (2048B)
### TODO list
* _delta_ file generation
* block size setting from command line
* dynamic block size setting based on file length
* file patching with provided _delta_
## App building
Application build:
```bash
go build ./cmd/gordiff
```
## App usage
Signature generation:
```bash
gordiff signature /path/to/file /path/to/signature
```
Signature generation with forced old signature file overwriting:
```bash
gordiff -force signature /path/to/file /path/to/signature
```