diff options
author | Teddy Wing | 2020-07-25 13:22:04 +0200 |
---|---|---|
committer | Teddy Wing | 2020-07-25 16:56:12 +0200 |
commit | d27d99084b58d19dc76443a03a0db445cbd9bcc7 (patch) | |
tree | 2048113386296bbd676ca05f3fe324e213c384d6 /Cargo.toml | |
parent | 4b3016a512f6353c2766576d2b8bce2f472ccdf3 (diff) | |
download | git-suggestion-d27d99084b58d19dc76443a03a0db445cbd9bcc7.tar.bz2 |
Suggestion: Try applying a change to the file (WIP)
Not working yet, but the idea is to get the file referenced by the
suggestion and apply the suggested change directly to it.
Here, we read the original file, and write its contents to the new file,
replacing the lines modified by the suggestion with the suggested
change.
Currently doesn't work because you can't pass file instances to
`fs::rename`, only paths.
I'd like to try a slightly different system so I can keep the original
file's creation date. With the current system, it would be overwritten
by the new temporary file created to store the change.
Diffstat (limited to 'Cargo.toml')
-rw-r--r-- | Cargo.toml | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -9,5 +9,6 @@ github-rs = "0.7.0" regex = "1.3.9" serde = { version = "1.0.114", features = ["derive"] } serde_json = "1.0.56" +tempfile = "3.1.0" thiserror = "1.0.20" unidiff = "0.3.3" |