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

Re: [PATCH] binary patch.

From
Daniel Barkalow <barkalow@iabervon.org>
Date
May 5, 2006, 20:33 UTC
Message-ID
<Pine.LNX.4.64.0605051605340.6713@iabervon.org>
In-Reply-To
<7vac9wxom0.fsf@assigned-by-dhcp.cox.net>
On Fri, 5 May 2006, Junio C Hamano wrote:
Show 5 quoted lines
> But "binaryness" affects only certain operations that extract
> the data (e.g. diff and grep) and not others (e.g. fetch).
> Also, it makes sense to being able to retroactively mark a blob,
> which was not marked as such originally, is a binary.  So I do
> not think it should be recorded in the object header.

Why do you think it makes sense to retroactively mark a blob with things like binariness or MIME type? To the extent that the information is not possible to extract from the blob contents, it seems to me to be a permanent aspect of the blob. And I could see having blobs with the same content but different type information (that one is a ZIP archive, while this one is a OpenDocument file), and tools may care how they were specified, and the user would want to be able to track how they had historically been marked, if the system allows them to be marked at all.

Of course, there's still the issue of how this info is generated for a new blob; I think it should live in the index for tracked files and come from a .gitignore-style file for new files. (For that matter, there could be a .gitmetadata file, which would handle "ignore" as well as binary and whatever other info you want to produce about your not-previously-tracked files.)

	-Daniel
*This .sig left intentionally blank*
Previous: Nicolas PitreNext: Junio C Hamano
Message 10 of 12 in “binary patch.”
  1. binary patch.Junio C Hamano, May 4, 2006
  2. Nicolas PitreMay 5, 2006
  3. Junio C HamanoMay 5, 2006
  4. Junio C HamanoMay 5, 2006
  5. Nicolas PitreMay 5, 2006
  6. Junio C HamanoMay 5, 2006
  7. Nicolas PitreMay 5, 2006
  8. Junio C HamanoMay 5, 2006
  9. Nicolas PitreMay 5, 2006
  10. Daniel BarkalowMay 5, 2006
  11. Junio C HamanoMay 5, 2006
  12. Junio C HamanoMay 6, 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.