diff options
author | Teddy Wing | 2020-07-21 01:27:37 +0200 |
---|---|---|
committer | Teddy Wing | 2020-07-21 01:32:41 +0200 |
commit | 1e883be33f61818e941dd2a147ce1bba85d178ce (patch) | |
tree | e002fea57732f01644a9e9a662d2dfbd94b84c91 /Cargo.toml | |
parent | d65b1ab87e4d3dbd7bf7ade653dd64dc5b715368 (diff) | |
download | git-suggestion-1e883be33f61818e941dd2a147ce1bba85d178ce.tar.bz2 |
Suggesstion: Implement `patch` to generate a patch for the suggestion
Still working on it, but have an initial draft working. There's no file
name in the diff hunk, so I'm assuming I'm going to have to add one
later.
Build a patch from the diff hunk and suggestion comment.
1. Remove `-` lines
2. Change `+` lines to ` `
3. Change last line to `-`
4. Append suggestion to the diff with a `+` prefix
Diffstat (limited to 'Cargo.toml')
-rw-r--r-- | Cargo.toml | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -5,6 +5,7 @@ edition = "2018" [dependencies] github-rs = "0.7.0" +regex = "1.3.9" serde = { version = "1.0.114", features = ["derive"] } serde_json = "1.0.56" thiserror = "1.0.20" |