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

[PATCH 0/2] tagsize < 8kb restriction

From
BEBjörn Engelmann <bjengelmann@gmx.de>
Date
May 22, 2006, 14:48 UTC
Message-ID
<4471CF23.1070807@gmx.de>
Hi,

I am currently working on an interface for source code quality assurance tools to automatically scan newly commited code. Since it is the only way to add data (scan-results) to an already-existing commit, I decided to use tags for that.

Since the scan-results will most definitly exeed the 8kb-limit, I would like to remove this artificial restriction.

I know I could also
    git-hash-object -t tag -w
but prefer using the "official" way.

In order not to write duplicate code I used parts of index_pipe() in sha1_file.c

What I found odd when writing the patch was that main() in mktag.c uses xread() to read from stdin (which respects EAGAIN and EINTR return values), but index_pipe() in sha1_file.c just uses read() for doing merely the same thing. For unifying both routines i found that xread() might be the better choice.

Removing the restriction was pretty straightforward but do you think this would break something in other places ?

[PATCH 1/2]
    remove the < 8kb restrinction from git-mktag
[PATCH 2/2]
    add more informative error messages to git-mktag
Bj
Next: Junio C Hamano
Message 1 of 12 in “tagsize < 8kb restriction”
  1. 0/2 tagsize < 8kb restrictionBjörn Engelmann, May 22, 2006
  2. Junio C HamanoMay 22, 2006
  3. SeanMay 22, 2006
  4. Linus TorvaldsMay 23, 2006
  5. SeanMay 23, 2006
  6. Björn EngelmannMay 23, 2006
  7. Junio C HamanoMay 23, 2006
  8. Björn EngelmannMay 24, 2006
  9. Junio C HamanoMay 24, 2006
  10. Björn EngelmannMay 25, 2006
  11. Junio C HamanoMay 25, 2006
  12. Junio C HamanoMay 23, 2006

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.