[Geany-Users] 1.25 incorrectly detecting file changes

Михаил Гаврилов mikhail.v.gavrilov at xxxxx
Wed Jul 29 08:27:42 UTC 2015


2015-07-29 13:13 GMT+05:00 Lex Trotman <elextr at gmail.com>:
> It would also have to be done when the file is opened, otherwise you
> have nothing to compare against.
>
> This is likely to make opening and closing large numbers of files slow.


Algorithm:

1. user open file
   a) calculate CRC for opened file and store into memory

2. user try save file
   a) calculate CRC for file which would be replaced
   b) compare two CRC
   c) if CRC are different notify user that someone had changed the
file and suggest merge changes with merge tool
   d) if CRC is identical just replace file on disk.


That would be really very convenient than it is now.

--
Best Regards,
Mike Gavrilov.


More information about the Users mailing list