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

Re: Unable to shrink repository size

From
Duy Nguyen <pclouds@gmail.com>
Date
Mar 6, 2014, 12:56 UTC
Message-ID
<CACsJy8AcQAYVTOr5u-VFJ4VkOGNMuOK39gJc-EPZvK+W0OFYsw@mail.gmail.com>
In-Reply-To
<CAHd499AW6nev81iVVhuoYfT0us28SSBDwbHCBa3teYB=cJR99g@mail.gmail.com>
On Thu, Mar 6, 2014 at 9:55 AM, Robert Dailey <rcdailey.lists@gmail.com> wrote:
> What I'd like to do is somehow hunt down the largest commit (*not*
> blob) in the entire history of the repository to hopefully find out
> where huge directories have been checked in.
Another try

git rev-list --all|while read i;do echo -n "$i "; git ls-tree -lr $i|awk '{a+=$4;} END {print a;}';done

You may need to feed it to gnuplot or something to see steep slopes.
-- 
Duy
Previous: Fredrik GustafssonNext: Jeff King
Message 4 of 5 in “Unable to shrink repository size”
  1. Robert DaileyMar 6, 2014
  2. Elijah NewrenMar 6, 2014
  3. Fredrik GustafssonMar 6, 2014
  4. Duy NguyenMar 6, 2014
  5. Jeff KingMar 6, 2014

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.