threads / discuss / 991

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

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

## tl;dr

One message between Jun 20, 2005 and Jun 20, 2005.

replies: 0people: 1as markdown or json

Matthias Urlichs· Jun 20, 2005, 13:46 UTC · lore
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.

← back to recent threads