Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A "CreateSignature" for diff tool would be nice #378

Closed
WindowsNT opened this issue Mar 7, 2024 · 2 comments
Closed

A "CreateSignature" for diff tool would be nice #378

WindowsNT opened this issue Mar 7, 2024 · 2 comments

Comments

@WindowsNT
Copy link

WindowsNT commented Mar 7, 2024

I am considering using this for live updates of my apps. Currently I use Microsoft's RDC implementation.

It would be nice if there was a signature tool so the signatures are kept offline.
For example:

Old folder = in web
New folder = in my PC.

I could generate a signature for the old folder for the diff tool to use it instead of having to download again the old folder from my site in order to compare it with the newer folder in my PC.Therefore, a diff can be created without the original source to be present, only it's signature.

MSRDC supports that but of course, only Windows.

Best.

@sisong
Copy link
Owner

sisong commented Mar 8, 2024

a diff can be created without the original source to be present, only it's signature.

hdiffpatch lib have a demo hsynz, only used new data's hash datas(signature), to create any old datas's diff file.

Is it possible to meet your needs?

@WindowsNT
Copy link
Author

Basically, the idea is this:

  1. I have a folder in my local system which is duplicated in a remote system. All the file "signatures" are precalculated.
  2. When I want to push an update, I update my local folder.
  3. At this point I want to generate a diff file for the remote system without the need to compare the new local updated folder with the old folder (which resides in the remote system), but instead do that based on the precalculated signatures which are smaller and can be downloaded from the remote system.

So it would be the same as hdiffz/hpatchz but hdiffz would only create the diff from the precalculated signature file, not from the entire remote directory (which is very large).

So I will take a look to hsynz and see if it works, thanks a lot for your support.

@sisong sisong closed this as not planned Won't fix, can't repro, duplicate, stale May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants