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

[BUG] git ls-files -m --with-tree does double output

From
AMAnders Melchiorsen <mail@cup.kalibalik.dk>
Date
Sep 24, 2008, 16:19 UTC
Message-ID
<87od2dv7mz.fsf@cup.kalibalik.dk>

I think that this is wrong? The combination of -m and --with-tree shows duplicate entries. Git 1.6.0.2.

Cheers, Anders.

and@dylle:~$ mkdir repo ; cd repo
and@dylle:~/repo$ git init
Initialized empty Git repository in /home/and/repo/.git/
and@dylle:~/repo$ date >a ; git add a ; git commit -m'Add 1'
Created initial commit c027435: Add 1
 1 files changed, 1 insertions(+), 0 deletions(-)
 create mode 100644 a
and@dylle:~/repo$ date >a
and@dylle:~/repo$ git ls-files -m --with-tree=HEAD
a
a
Next: Jeff King
Message 1 of 2 in “[BUG] git ls-files -m --with-tree does double output”
  1. Anders MelchiorsenSep 24, 2008
  2. Jeff KingSep 26, 2008

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.