Hi,

Why would anyone add wcd data files to a version control system? The default tree data file is personal. I have never seen people adding personal settings to a project's version control system.

I also don't expect that a user types 'wcd -a' twice. The program does what the user asks it to do. Wcd is as intelligent as the user.

Erwin

Op 05-03-09 17:29, Jari Aalto schreef:
Erwin Waterlander <[email protected]> writes:

   wcd -a
   wcd -a
   cat ~/.treedata.wcd
This is not a problem. Duplicate entries in the data file don't result
in duplicate matches, because duplicate matches are filtered out.

I understand that this is not a problem in the program, but it is
presents a problem for the user side:

    1. Put directory $WCDHOME into version control
       (take your pick: RCS, Cvs, Svn, Hg, Bzr, Git ...)

       Any chnage since last save to version control
       will be reported "modified sources".

    2. Add same directory again

       wcd -a

    => Not the .treedata.wcd has now changed content
    => Version control reports changed files

       committing to version scontrol would be wrong thing to do.

The multiple entries effective prevent using version control effectively
to save the states.

If the program checked the entry before adding it to file, the
WCDHOME would stay pristine.

Jari

Reply via email to