Re:Using GNU Stow to manage your dotfiles
by akavel on Wednesday October 22, 2014 @08:23AM
(#8492337)
I've once thought of something similar for hg, but a bit bigger, in that:
1. There could be many "hg-dirs" for a one regular "workdir" (e.g. .hg_foo, .hg_bar, .hg_baz, ...)
2. There'd be a wrapper tool, that on any hg command would autodetect to which hg-dir any given affected file belongs, if already committed earlier (with ability to override the autodetection by hand, including for adding brand new files to the repo).
However, didn't care enough to try implementing this yet. Also, not quite sure how/whether it could work with git, given the existence of staging area.
1. There could be many "hg-dirs" for a one regular "workdir" (e.g. .hg_foo, .hg_bar, .hg_baz, ...)
2. There'd be a wrapper tool, that on any hg command would autodetect to which hg-dir any given affected file belongs, if already committed earlier (with ability to override the autodetection by hand, including for adding brand new files to the repo).
However, didn't care enough to try implementing this yet. Also, not quite sure how/whether it could work with git, given the existence of staging area.
(full story: http://stackoverflow.com/a/5789827/98528)