Re: [offtopic?] xdelta patch format wrapper
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Feb 13, 2008, 11:33 UTC
- Message-ID
- <alpine.LSU.1.00.0802131128040.30505@racer.site>
- In-Reply-To
- <47B26830.6090501@catalyst.net.nz>
Hi,
On Wed, 13 Feb 2008, Martin Langhoff wrote:
> I don't think I'll use *any* git code at all for the time being. If it > was trivial to produce a statically compiled git-diff.exe and > git-apply-patch.exe that work without funny dependencies on any windows > box then I would.
It is trivial.
Except that we do not have any git-apply-patch.exe. Maybe you meant git-apply.exe?
> Don't think any of the windows ports of git are there (even though they > are excellent!).
How can you say that they are excellent, and then say they are not there yet?
FWIW I just checked. In msysGit, git-apply.exe and git-diff.exe are identical (no mystery there: they are both builtins), and weigh in with 2893142 bytes.
If you're serious about wanting something reliable, quick, but smaller than that, it should be _trivial_ to cut down. For example, a simple "strip git-diff.exe" brings it down to 821248 bytes.
And that's without removing all the other builtins, which would be trivial, too (just cull "struct cmd_struct commands" in git.c, and "BUILT_INS" and "BUILTIN_OBJS" in the Makefile).
Hth, Dscho