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

Re: [PATCH 0/2] tagsize < 8kb restriction

From
Junio C Hamano <junkio@cox.net>
Date
May 24, 2006, 19:39 UTC
Message-ID
<7v1wuj6wln.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<4474B10A.1020704@gmx.de>
Björn Engelmann <BjEngelmann@gmx.de> writes:
Show 10 quoted lines
> That is why I said, all input should be validated by default. All I
> proposed was
> a) unify the tools in order to have less duplicate code
> (git-mktag, git-mktree & git-hash-object do merely the same
> except for the validating part)
> b) remove the possibility to introduce unchecked objects of arbitrary
> type (or only allow it with the -f = "force, use with caution"-option)
> maybe I should have written "blob, tag, tree or commit" instead of
> "arbitrary". I did not mean really arbitrary like it is implemented
> right now in git-hash-object.

Sorry, I forgot all about hash-objects X-<. It was a convenient way to try out new things such as 'gitlink'. Thanks for the clarification.

As to unification, I am not sure if there are a lot to unify. Everybody starts with type, length and a LF, but after that each type has its own format constraints. A grand unified command that knows about format constraints of every type under the sun does not sound like a good approach. While we have only handful types (and I expect things will stay that way) it is not a big deal either way, though.

And the common part is already shared (write_sha1_file_prepare() and write_sha1_file() from sha1_file.c).

Previous: Björn EngelmannNext: Björn Engelmann
Message 9 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.