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

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

From
BEBjörn Engelmann <bjengelmann@gmx.de>
Date
May 24, 2006, 19:16 UTC
Message-ID
<4474B10A.1020704@gmx.de>
In-Reply-To
<7vzmh81gfa.fsf@assigned-by-dhcp.cox.net>
Show 20 quoted lines
>> 2.) Searching for a way to add objects to the database I spent quite a
>> while to find the right command. Don't you think it would be much more
>> intuitive having an
>>
>>     git-create-object [-t <type>] [-n] [-f] [-z] [--stdin] <file> [-r
>> <ref-name>]
>>
>> command for creating any type of object (-t blob as default).
>>     
>
> No, I do not think we would want to make it too easy and relaxed
> to create arbitrary object-looking thing.  Each type have
> defined format and semantics, and creation of an object of each
> type should be validated.  I do not want to encourage bypassing
> it by introducing such a backdoor.  The backdoor is easy to
> write, but I suspect it would actively harm us, instead of
> helping us, by encouraging "let's build a custom type of object,
> we do not care if other people would not understand it"
> mentality.
>   
Well, this is exactly what you have now in
    git-hash-object -w -t foo

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.

Bj
Previous: Junio C HamanoNext: Junio C Hamano
Message 8 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.