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

Re: git-ls-files -l

From
Jakub Narebski <jnareb@gmail.com>
Date
Dec 30, 2008, 11:01 UTC
Message-ID
<m3wsdiaptg.fsf@localhost.localdomain>
In-Reply-To
<87abae6hbn.fsf@jidanni.org>
jidanni@jidanni.org writes:
Show 6 quoted lines
> Beginners, finding git-ls-files acts like ls,
> are baffled as to why they can't go on to ls -l.
> 
> The git-ls-files man page should reveal the secret of how also to see
> file sizes. Perhaps the closest one can get is
> $ git-ls-tree -l --abbrev ...

git-ls-tree has the '-l' option mimicking (somewhat) "ls -l" behaviour only because it was thought to be useful for gitweb (to have file sizes in 'tree' view, like cgit has it), although gitweb doesn't use it yet.

I think it would be easy to add '-l' also to git-ls-files. Please remember to provide size only for blobs, as provoding size for trees would make it harder to change to future packv4, where tree objects would be stored deconstructed.

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: jidanni@jidanni.orgNext: Linus Torvalds
Message 2 of 4 in “git-ls-files -l”
  1. jidanni@jidanni.orgDec 29, 2008
  2. Jakub NarebskiDec 30, 2008
  3. Linus TorvaldsDec 30, 2008
  4. Jakub NarebskiDec 30, 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.