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

Re: Find the size of git push in pre-receive hook

From
MBMagnus Bäck <magnus.back@sonyericsson.com>
Date
Nov 4, 2011, 09:46 UTC
Message-ID
<20111104094644.GA31856@jpl.local>
In-Reply-To
<1320398420796-6962141.post@n2.nabble.com>
On Friday, November 04, 2011 at 10:20 CET,
     manigandans <etc.mani@gmail.com> wrote:
> I want to restrict the size of the push on the git remote repository.
> How can I find the size of the push in pre-receive hook?

What does "size of the push" mean to you? Number of bytes transmitted over the wire? Number of commits pushed? Number of refs updated? Number of files modified? Number of lines modified? Something else?

-- 
Magnus Bäck                   Opinions are my own and do not necessarily
SW Configuration Manager      represent the ones of my employer, etc.
Sony Ericsson
Previous: manigandansNext: Junio C Hamano
Message 2 of 5 in “Find the size of git push in pre-receive hook”
  1. manigandansNov 4, 2011
  2. Magnus BäckNov 4, 2011
  3. Junio C HamanoNov 4, 2011
  4. Junio C HamanoNov 7, 2011
  5. Jeff KingNov 8, 2011

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.