Author Topic: Diff and externally modified file  (Read 248 times)

jporkkahtc

  • Senior Community Member
  • Posts: 2618
  • Hero Points: 210
  • Text
Diff and externally modified file
« on: August 18, 2022, 05:35:25 pm »
1 Copy file.txt file2.txt
2 echo THIS >> file2.txt
3 VS.exe file.txt file2.txt
4 In Slick, diff the two files. (1st 5 checkboxes in diff->options are checked).

5 From outside slick, echo MORETEXT >> file2.txt

6 Back in main Slick window, note that the change is loaded into the buffer. NOTE: Slickedit did not prompt about reloading the file at all (I suppose it wouldn't normally since the buffer was not modified).

7 In the diff window, append MODIFIED to the 1st line on File2.txt
8 Close diff, save changes.
9 Now, File2.txt is about double in size -- two copies of the text are in this file.
Looks like the complete original text followed by the changes made externally and changes made in diff.


Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2811
  • Hero Points: 146
Re: Diff and externally modified file
« Reply #1 on: August 18, 2022, 06:28:05 pm »
I'm going to be looking into this.  The solution is probably not to check if the file is being diffed and not allow it.