binary safe?

4 messages, 4 authors, 2016-06-15 · open the first message on its own page

binary safe?

From: Randal L. Schwartz <hidden>
Date: 2016-06-15 22:42:10

I'm currently about to abandon CVS for my website management,
replacing it with git.

What problems, if any, will I have using git to manage the binary
files for my site, like the custom icons?  CVS is doing that just fine
now.

I presume emailing diff-patches is out of the question, but if all I'm
doing is git-push and git-pull (using the shared central repository
model), and if I'm stupid enough to have a merge error it's OK to just
blow up on a binary file, will everything else work fine?

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
[off-list ref] <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

Re: binary safe?

From: Linus Torvalds <torvalds@osdl.org>
Date: 2016-06-15 22:42:10


On Thu, 3 Nov 2005, Randal L. Schwartz wrote:
I'm currently about to abandon CVS for my website management,
replacing it with git.

What problems, if any, will I have using git to manage the binary
files for my site, like the custom icons?  CVS is doing that just fine
now.
Git doesn't have any textual representations anywhere.

So the _only_ problem should be "git diff" (and related patch-based tools 
- git-apply etc). They'll simply not work. For similar reasons, a 
three-way merge will obviously fail.
I presume emailing diff-patches is out of the question, but if all I'm
doing is git-push and git-pull (using the shared central repository
model), and if I'm stupid enough to have a merge error it's OK to just
blow up on a binary file, will everything else work fine?
Yes. I don't think it's been heavily tested, but the very architecture of 
git should mean that there just shouldn't be any issues with binary files 
outside of the obvious ones.

The only binary file the kernel ever uses is the logo.gif thing, so it's 
been "tested" in the sense that binary files exist, but there's never been 
any changes to that file, so..

		Linus

Re: binary safe?

From: Nick Hengeveld <hidden>
Date: 2016-06-15 22:42:10

On Thu, Nov 03, 2005 at 02:02:20PM -0800, Randal L. Schwartz wrote:
What problems, if any, will I have using git to manage the binary
files for my site, like the custom icons?  CVS is doing that just fine
now.
We're now using git in production to distribute content, of which well
over 90% is binary files.  Works great.

-- 
For a successful technology, reality must take precedence over public
relations, for nature cannot be fooled.

Re: binary safe?

From: Chris Wedgwood <hidden>
Date: 2016-06-15 22:42:10

On Thu, Nov 03, 2005 at 02:50:21PM -0800, Linus Torvalds wrote:
So the _only_ problem should be "git diff" (and related patch-based
tools - git-apply etc). They'll simply not work. For similar
reasons, a three-way merge will obviously fail.
I always thought it would be nice for binary files if SCMs could
export a summary of what ranges of bytes changes or even xdelta'ish
details.

Given that people do stick large multi-MB binary blobs in SCMs and
sometimes these update only a few bytes at a time it has some value.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help