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

Re: git-fixup-assigner.perl -- automatically decide where to "fixup!"

From
Thomas Rast <trast@student.ethz.ch>
Date
Oct 26, 2011, 19:40 UTC
Message-ID
<201110262140.50786.trast@student.ethz.ch>
In-Reply-To
<CADVrmKT1woYpJoe=L9sAbQ30TUw44zMc7y4WF=PMrT5Gj9kDNw@mail.gmail.com>
fREW Schmidt wrote:
Show 5 quoted lines
> 
>   $ git fixup-assigner.pl > fixups && less fixups
>   #!/bin/sh
> 
>   git apply --cached <<EOF
[...]
Show 10 quoted lines
>   -   $self->set($c,
> $c->model('DB')->schema->kiokudb_handle->lookup('dashboard
> templates'));
>   +   $self->set($c, $c->model('Kioku')->lookup('dashboard templates'));
>    }
>   EOF
> 
>   git commit --fixup 7765cbd2
> 
> Looks fine to me.  But then I try to use it:

The shell will expand variables in the <<EOF section above. You can fix that by changing it to output <<\EOF instead, which is clearly a bug in the original script.

-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Previous: fREW Schmidt
Message 3 of 3 in “git-fixup-assigner.perl -- automatically decide where to "fixup!"”
  1. Thomas RastDec 14, 2010
  2. fREW SchmidtOct 26, 2011
  3. Thomas RastOct 26, 2011

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.