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

Re: git and binary files

From
Jakub Narebski <jnareb@gmail.com>
Date
Jan 16, 2008, 14:20 UTC
Message-ID
<200801161520.44668.jnareb@gmail.com>
In-Reply-To
<alpine.DEB.1.00.0801161600030.5260@bender.nucleusys.com>
Petko Manolov wrote:
Show 7 quoted lines
> On Wed, 16 Jan 2008, Jakub Narebski wrote:
> 
> > You can always tag a blob (like junio-gpg-pub tag in git.git repository),
> > but it wouldn't be in a working directory. But it would get distributed
> > on clone.
> 
> Hm, how does it work?

You use git-hash-object to put file (-t blob) into the object database. It would return sha1 of added object. Use git-tag to create tag to blob (use returned sha1 for head). You can get file (to stdout) with "git cat-file blob tagname^{blob}".

The file would be in object database, but not in working directory by default.

Show 7 quoted lines
> > BTW. if those large binary files doesn't differ much between version, 
> > they should get well compressed even if you would store them normally, 
> > all revisions.
> 
> Unfortunately this is not the case.  These binary blobs are already 
> compressed and/or encrypted and adding even a few bytes ends up storing 
> new version in full size.
Can't you store them uncompressed?
-- 
Jakub Narebski
Poland
Previous: Petko ManolovNext: Petko Manolov
Message 16 of 32 in “git and binary files”
  1. Petko ManolovJan 16, 2008
  2. David SymondsJan 16, 2008
  3. Petko ManolovJan 16, 2008
  4. Johannes SchindelinJan 16, 2008
  5. Petko ManolovJan 16, 2008
  6. Johannes SchindelinJan 16, 2008
  7. Petko ManolovJan 16, 2008
  8. Wincent ColaiutaJan 16, 2008
  9. Petko ManolovJan 16, 2008
  10. Junio C HamanoJan 16, 2008
  11. Junio C HamanoJan 16, 2008
  12. Johannes SchindelinJan 16, 2008
  13. Petko ManolovJan 16, 2008
  14. Jakub NarebskiJan 16, 2008
  15. Petko ManolovJan 16, 2008
  16. Jakub NarebskiJan 16, 2008
  17. Petko ManolovJan 16, 2008
  18. Nicolas PitreJan 16, 2008
  19. Petko ManolovJan 16, 2008
  20. Nicolas PitreJan 16, 2008
  21. Petko ManolovJan 16, 2008
  22. Petko ManolovJan 16, 2008
  23. Jakub NarebskiJan 16, 2008
  24. Florian WeimerJan 16, 2008
  25. Jeff KingJan 16, 2008
  26. Petko ManolovJan 16, 2008
  27. Jeff KingJan 16, 2008
  28. Petko ManolovJan 16, 2008
  29. Jeff KingJan 16, 2008
  30. Petko ManolovJan 16, 2008
  31. Rogan DawesJan 16, 2008
  32. David BrownJan 18, 2008

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.