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

[PATCH 09/13] drop objects larger than --blob-limit if specified

From
DHDana How <danahow@gmail.com>
Date
Apr 5, 2007, 22:36 UTC
Message-ID
<56b7f5510704051536s7de9638fs8cd811d580f6a7dc@mail.gmail.com>
---
 builtin-pack-objects.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
-- 
Dana L. How  danahow@gmail.com  +1 650 804 5991 cell


From 62532de2a8c19ca8d8bfb2e4bc02bff39bcc7ca8 Mon Sep 17 00:00:00 2001
From: Dana How <how@deathvalley.cswitch.com>
Date: Thu, 5 Apr 2007 14:06:05 -0700
Subject: [PATCH 09/13] drop objects larger than --blob-limit if specified

---
 builtin-pack-objects.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c
index 37b0150..ccc2d15 100644
--- a/builtin-pack-objects.c
+++ b/builtin-pack-objects.c
@@ -1116,6 +1116,7 @@ static void check_object(struct object_entry *entry)
 	}
 
 	entry->type = sha1_object_info(entry->sha1, &entry->size);
+	nr_skipped += entry->no_write = blob_limit && (unsigned long)entry->size >= blob_limit;
 	if (entry->type < 0)
 		die("unable to get type of object %s",
 		    sha1_to_hex(entry->sha1));
-- 
1.5.1.rc2.18.g9c88-dirty
Next: Nicolas Pitre
Message 1 of 11 in “drop objects larger than --blob-limit if specified”
  1. 09/13 drop objects larger than --blob-limit if specifiedDana How, Apr 5, 2007
  2. Nicolas PitreApr 6, 2007
  3. Dana HowApr 6, 2007
  4. Nicolas PitreApr 6, 2007
  5. Linus TorvaldsApr 6, 2007
  6. Dana HowApr 6, 2007
  7. Nicolas PitreApr 6, 2007
  8. Linus TorvaldsApr 6, 2007
  9. Junio C HamanoApr 6, 2007
  10. David LangApr 8, 2007
  11. Nicolas PitreApr 6, 2007

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.