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

Re: [PATCH 2/2] diff: respect textconv in rewrite diffs

From
Jeff King <peff@peff.net>
Date
Dec 10, 2008, 09:02 UTC
Message-ID
<20081210090221.GA11367@coredump.intra.peff.net>
In-Reply-To
<7v3agw2zu5.fsf@gitster.siamese.dyndns.org>
On Wed, Dec 10, 2008 at 12:34:26AM -0800, Junio C Hamano wrote:
Show 7 quoted lines
> > +cat >dump <<'EOF'
> > +#!/bin/sh
> > +perl -e '$/ = undef; $_ = <>; s/./ord($&)/ge; print $_' < "$1"
> > +EOF
> 
> I'll squash in a change to make this part use $SHELL_PATH for
> consistency.  Thanks.

It was cut-and-paste from t4030, so if we care, it might be worth changing there, too (and naming it "dump" instead of "hexdump", because it actually dumps in decimal :) ).

But more importantly, the fixup you just pushed seems to have an extra ">dump":

Show 7 quoted lines
> +{
> +       echo "#!$SHELL_PATH"
> +       cat >dump <<'EOF'
> +perl -e '$/ = undef; $_ = <>; s/./ord($&)/ge; print $_' < "$1"
> +EOF
> +} >dump
> +chmod +x dump
-Peff
Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 7 in “diff: fix handling of binary rewrite diffs”
  1. 1/2 diff: fix handling of binary rewrite diffsJeff King, Dec 9, 2008
  2. 2/2 diff: respect textconv in rewrite diffsJeff King, Dec 9, 2008
  3. Junio C HamanoDec 10, 2008
  4. Jeff KingDec 10, 2008
  5. Junio C HamanoDec 10, 2008
  6. Junio C HamanoDec 10, 2008
  7. Jeff KingDec 10, 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.