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

Re: What's new in git.git master branch

From
Fredrik Kuivinen <freku045@student.liu.se>
Date
Dec 1, 2005, 08:54 UTC
Message-ID
<20051201085433.GA7866@c165.ib.student.liu.se>
In-Reply-To
<7vlkz5n3r1.fsf@assigned-by-dhcp.cox.net>
On Wed, Nov 30, 2005 at 02:57:06PM -0800, Junio C Hamano wrote:
[...]
>  - ls-tree rewrite (Linus).
[...]
Show 5 quoted lines
> One interesting change is ls-tree rewrite by Linus.  The command
> does _not_ show tree nodes when running with -r flag anymore.
> Running "git diff v0.99.9i t/t3100-ls-tree-restrict.sh"
> after updating to the master tells you the summary of changes in
> the behaviour.

It turns out that this change breaks the directory/file conflict handling in git-merge-recursive. Right now merge-recursive uses

   git-ls-tree -r -z <tree SHA1>

to get a listing of every blob object (which corresponds to files) and every tree object (which corresponds to directories) in the tree designated by the SHA1. With the new ls-tree behaviour we don't get any tree objects and hence merge-recursive can't do the d/f conflict detection as it doesn't know about the directories. As we don't track empty directories it could be fixed within git-merge-recursive, a list of the directory names can be obtained from the list of file names by stripping everything after the last slash in the file names.

Should we do it that way or should ls-tree be changed?
- Fredrik
Previous: Junio C HamanoNext: Junio C Hamano
Message 2 of 15 in “What's new in git.git master branch”
  1. Junio C HamanoNov 30, 2005
  2. Fredrik KuivinenDec 1, 2005
  3. Junio C HamanoDec 1, 2005
  4. Junio C HamanoDec 2, 2005
  5. Junio C HamanoDec 2, 2005
  6. Fredrik KuivinenDec 2, 2005
  7. Fredrik KuivinenDec 2, 2005
  8. 3/3 update-index: allow --index-info to add higher stages.Junio C Hamano, Dec 7, 2005
  9. git-ls-tree: add "-t" option to always show the tree entriesLinus Torvalds, Dec 1, 2005
  10. Junio C HamanoDec 1, 2005
  11. Linus TorvaldsDec 1, 2005
  12. Junio C HamanoDec 1, 2005
  13. ls-tree: --name-onlyJunio C Hamano, Dec 1, 2005
  14. Junio C HamanoDec 2, 2005
  15. Linus TorvaldsDec 2, 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.