Replace files where content differs

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
tridy
Junior Member
Junior Member
Posts: 92
Joined: 2003-11-27, 07:51 UTC
Location: Еurоpе

Replace files where content differs

Post by *tridy »

Hi.

Is it possible to do copy files (same name but different date) and replace only those that have different content. Something like a CRC checksum before replace, and if different then replace, otherwise skip.

I do not want to replace the files with the same content since then the source control will see them as "changed".

thanks
[tridy]
License #: 79539
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

No it's not. It would most probably be slower than just copying everything.
Author of Total Commander
https://www.ghisler.com
User avatar
tridy
Junior Member
Junior Member
Posts: 92
Joined: 2003-11-27, 07:51 UTC
Location: Еurоpе

Post by *tridy »

Thanks for the reply.

Actually using Git helped me here. It checks the hash of the files, and when I copied all the files from one folder/branch to another, it calculated the hash and showed me only the files with the changes. Since I needed to do it only 1 time, it is not big deal. Problem solved.

regards
[tridy]
License #: 79539
Post Reply