Skip to content
This repository has been archived by the owner on Jun 17, 2023. It is now read-only.

Feature request: Directory comparison from multiple hosts #49

Open
t-chab opened this issue Jun 1, 2017 · 2 comments
Open

Feature request: Directory comparison from multiple hosts #49

t-chab opened this issue Jun 1, 2017 · 2 comments

Comments

@t-chab
Copy link

t-chab commented Jun 1, 2017

It would be nice if ztree-diff allowed comparison from two directories on different hosts (via tramp).

@fourier
Copy link
Owner

fourier commented Sep 13, 2017

The problem is what the backend for file comparison is still the simple diff utility, which doesn't work over the network. If you have any ideas on how it could be solved please write here. I'll keep this issue open until we find some way forward.

@ylluminarious
Copy link

@fourier I haven't dug into the ztree sources, so I'm not exactly sure how you do things. But I have some ideas for how you could get this feature into ztree. First off, you could use rsync to determine which files are different on local and remote hosts. The option to use for this is --dry-run (-n for short). This doesn't show you a diff in and of itself, but it lets you determine which files are different. You could obviously add some more options to make the output more to your liking. Here's the rsync man page for reference.

To do an actual diff with remote files, Ediff says that it already supports this.

The only problem that I can think of off the top of my head is rsync's limitations on how many remote files you can use. In other words, rsync only lets you use one remote file in your inputs. The other file has to be local. There are some workarounds for this, but I'm not sure whether you'd be interested in them yet.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants