git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Matthias Urlichs <smurf@smurf.noris.de>
Date
Jun 20, 2005, 13:46 UTC
Message-ID
<pan.2005.06.20.13.46.23.833207@smurf.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.
Message 1 of 1 in “git-read-tree -m -u doesn't delete files: ?”
  1. Matthias UrlichsJun 20, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.