# git-read-tree -m -u doesn't delete files: ?

1 messages from 2005-06-20 to 2005-06-20. Participants: Matthias Urlichs.
Thread: https://gitlist.dev/t/991

## Matthias Urlichs, 2005-06-20 13:46

Subject: git-read-tree -m -u doesn't delete files: ?
Message-ID: <pan.2005.06.20.13.46.23.833207@smurf.noris.de>
URL: https://gitlist.dev/e/pan.2005.06.20.13.46.23.833207%40smurf.noris.de

```
Documentation/git-read-tree.txt states:

     10 yes   yes   N/A     exists   nothing  remove path from cache

and 

  -u::
    After a successful merge, update the files in the work
    tree with the result of the merge.

... which suggests that the file in question should be deleted.
In fcat, if I have a clean tree A, and I do "git-read-tree -m -u A B",
I'd assume that I should have a clean tree B afterwards.

Would it be safe to add all files for which read_tree.c:merge_cache:fn()
returns zero to a "delete me" list?

-- 
Matthias Urlichs   |   {M:U} IT Design @ m-u-it.de   |  smurf@smurf.noris.de
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
 - -
The greatest productive force is human selfishness.



```
