GitDiffSwift
GitDiffSwift is a git diff parser written in Swift.
Features
- Diff parsing
- Apply a diff to a file
- Outputs diff as JSON
- Outputs original diff from Swift model
Installation
CocoaPods
pod 'GitDiffSwift'
Carthage
Make the following entry in your Cartfile:
github "SD10/GitDiffSwift"
Swift Package Manager
To integrate using Apple's Swift package manager, add the following as a dependency to your Package.swift
:
.package(url: "https://github.com/SD10/GitDiffSwift.git", .upToNextMajor(from: "0.0.1"))
Contributing
Pull requests welcomed. This repo is being developed at the speed of snail.
License
GitDiffSwift is released under the MIT License