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

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

Previous: Junio C HamanoNext: Martin Langhoff
Message 5 of 7 in “[offtopic?] xdelta patch format wrapper”
  1. Martin LanghoffFeb 13, 2008
  2. Junio C HamanoFeb 13, 2008
  3. Martin LanghoffFeb 13, 2008
  4. Junio C HamanoFeb 13, 2008
  5. Johannes SchindelinFeb 13, 2008
  6. Martin LanghoffFeb 13, 2008
  7. Martin LanghoffFeb 13, 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.