bcpierce00 / unison

Unison file synchronizer
GNU General Public License v3.0
3.91k stars 225 forks source link

Add an option to name the roots #70

Open mzuther opened 7 years ago

mzuther commented 7 years ago

Hi!

There is a nice feature in some visual diff tools that I would love to see in Unison: naming the roots. So, by setting

root = some/path/ -> local
root = other/path/ -> remote

you wouldn't see, say some/path/file.txt and other/path/file.txt, but local/file.txt and remote/file.txt. This would make diffing much easier, especially if you don't remember the exact file paths involved.

I hope that made some sense. Otherwise, please feel free to ask and I'll try to explain myself. :)

Thanks!

Martin

hlovdal commented 6 years ago

I would also very much like to be able to have custom names on the endpoints, but not any compression of paths, i.e. just a pure prefix added to the beginning (local: /full/path/file.txt and remote: /full/path/file.txt).

bcpierce00 commented 6 years ago

Sounds useful. Happy to accept a patch if someone wants to implement it.

bcpierce00 commented 6 years ago

(We'd want to implement #5 first, though, to minimize compatibility problems.)