Martin Langhoff <martin.langhoff@gmail.com> writes:It shouldn't be too tricky to enhance "git am" (git-apply called at around line 49 in it) to grok binary differences for this purpose, because you would have both pre- and post-image blob in your object database, because the patch is being used only to replay what you have in your reository, and it records their abbreviated SHA1 name. I've never felt need to "merge" the binary files myself and had never got around doing this, but if you are interested, it would go something like this: . Make "index %.7s..%.7s" that abbreviates pre- and post- image blob SHA1s in diff.c configurable to spit out full 40 bytes. Call that option --full-index-sha1. . The updated "git rebase" that uses the "format-patch | am" I outlined would pass the --full-index-sha1 to format-patch (which is pased onto underlying diff-tree -p). . In apply.c, check if all of the following holds: * we have both the full 40-byte old_sha1_prefix[] and new_sha1_prefix[]; and * what the index records matches old_sha1_prefix[]; and * the new blob is found in the object database; and for such a path: * change parse_chunk() not to barf even on a binary patch. * change apply_data() to just declare the patch application result is the new blob recorded in the patch. Hmm. - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| David Woodhouse | Re: [PATCH] bnx2 - use request_firmware() |
| James Bottomley | Re: Integration of SCST in the mainstream Linux kernel |
| Zdenek Kabelac | Problem: Out of memory after 2days with 2GB RAM |
| Florian Schmidt | blacklist kernel boot option |
git: | |
| Junio C Hamano | Re: git-show, was Re: What's in git.git (stable) |
| Daniel Berlin | git annotate runs out of memory |
| Eric Lesh | Re: .gitlink for Summer of Code |
| Petko Manolov | git and binary files |
| Jim Winstead Jr. | Re: Root Disk/Book Disk Compatibility |
| Doug Evans | Re: Stabilizing Linux |
| drew | Re: Linux-0.12 |
| Stephen Pierce | SLS |
| Richard Stallman | Re: Real men don't attack straw men |
| Vim Visual | lenovo x61s bsd.mp Obsd 4.2 difficulties et al. |
| Anselm R. Garbe | OpenBSD 4.0 / Xorg -> vesa 1920x1200 widescreen resolution |
| Parvinder Bhasin | BIND and CNAME-ing |
