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

Re: [PATCH] sequencer: ensure labels that are object IDs are rewritten

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
May 31, 2018, 11:49 UTC
Message-ID
<nycvar.QRO.7.76.6.1805311347380.82@tvgsbejvaqbjf.bet>
In-Reply-To
<20180530222011.GC671367@genre.crustytoothpaste.net>
Hi Brian,
On Wed, 30 May 2018, brian m. carlson wrote:
Show 26 quoted lines
> On Wed, May 30, 2018 at 11:54:27AM +0200, Johannes Schindelin wrote:
> 
> > > +	third=$(git rev-parse HEAD) &&
> > > +	git checkout -b labels master &&
> > > +	git merge --no-commit third &&
> > > +	test_tick &&
> > > +	git commit -m "Merge commit '\''$third'\'' into labels" &&
> > 
> > Here, the test_tick is required because we commit via `git commit`.
> > 
> > BTW another thing that I had been meaning to address but totally forgot is
> > this '\'' ugliness. I had been meaning to define SQ="'" before all test
> > cases and then use $SQ everywhere. Not your problem, though.
> > 
> > > +	cp script-from-scratch-orig script-from-scratch &&
> > 
> > There is nothing in that script that you need. Why not simply
> > 
> > 	echo noop >script-from-scratch
> > 
> > or if you care about the branch,
> > 
> > 	echo reset $third >script-from-scratch
> 
> That would be simpler.  You read my mind: I needed some script to make
> the sequence editor work, but anything would be fine.

I would not go that far. Sometimes I wish I could read minds. More often, I am glad that I cannot. I simply guessed correctly in this case ;-)

But yes, I think it would not only be simpler, but would also avoid the head-scratching why the earlier `cp script-from-scratch script-from-scratch-orig`, and it would also make it more robust to future changes (e.g. if somebody decides to move test cases around, or introduce prereqs that skip some).

Ciao, Dscho

Previous: brian m. carlsonNext: brian m. carlson
Message 4 of 6 in “sequencer: ensure labels that are object IDs are rewritten”
  1. sequencer: ensure labels that are object IDs are rewrittenbrian m. carlson, May 29, 2018
  2. Johannes SchindelinMay 30, 2018
  3. brian m. carlsonMay 30, 2018
  4. Johannes SchindelinMay 31, 2018
  5. sequencer: ensure labels that are object IDs are rewrittenbrian m. carlson, Jun 1, 2018
  6. Johannes SchindelinJun 1, 2018

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.