mirror of
https://github.com/martinvonz/jj.git
synced 2025-02-06 11:34:54 +00:00
merge_tools: avoid re-reading edited file, read from buffer instead
I suspect this was just because it wasn't obvious to the author how to get a `Read` from an in-memory buffer (I know it wasn't to me).
This commit is contained in:
parent
04a107babf
commit
a5ef4f0f40
1 changed files with 1 additions and 1 deletions
|
@ -271,7 +271,7 @@ pub fn run_mergetool(
|
||||||
let new_tree_value = new_tree_value.unwrap_or({
|
let new_tree_value = new_tree_value.unwrap_or({
|
||||||
let new_file_id = tree
|
let new_file_id = tree
|
||||||
.store()
|
.store()
|
||||||
.write_file(repo_path, &mut File::open(paths.get("output").unwrap())?)?;
|
.write_file(repo_path, &mut output_file_contents.as_slice())?;
|
||||||
TreeValue::File {
|
TreeValue::File {
|
||||||
id: new_file_id,
|
id: new_file_id,
|
||||||
executable: false,
|
executable: false,
|
||||||
|
|
Loading…
Reference in a new issue