资 源 简 介
Collectfs
The purpose of collectfs is to protect a project hierarchy by providing a fairly universal no-clobber mechanism:
The history of changes is preserved.
Missteps in using rm, mv, cat, etc are non-permanent.
It works seamlessly with standard development tools.
Any file that is overwritten by remove (unlink), move, link, symlink, or open-truncate is relocated to a trash directory (mount-point/.trash/). Removed files are date-time stamped so that edit history is maintained (a version number is appended if the same file is collected more than once in the same second).
Usage is quite straight forward, for example:
% collectfs myProject myWorkspace% cd myWorkspace% vi main.c% indent main.c% ls .trashmain.c.2011-07-24.14:59:39% diff .trash/main.c.2011-07-24.14:59:39 main.c...% mv .trash/main.c.2011-07-24.14:59:39 main.cls .trashmain.c.2011-07-24.15:00:37...cd ..fusermount -u myWorkspace
Col