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

Re: [PATCH] Make rebase--interactive use OPTIONS_SPEC

From
Stephan Beyer <s-beyer@gmx.net>
Date
Jul 12, 2008, 17:27 UTC
Message-ID
<20080712172729.GE7572@leksak.fem-net>
In-Reply-To
<alpine.DEB.1.00.0807121728180.8950@racer>
Hi,
Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
Show 7 quoted lines
> > +	--onto)
> > +		shift
> > +		ONTO=$(git rev-parse --verify "$1") ||
> > +			die "Does not point to a valid commit: $1"
> 
> Didn't you have some check earlier that "--onto" can only be used when 
> starting a rebase?
Yes, and I still have. is_standalone does that:
# check if no other options are set
is_standalone () {
	test $# -eq 2 -a "$2" = '--' &&
	test -z "$ONTO" &&
	test -z "$PRESERVE_MERGES" &&
	test -z "$STRATEGY" &&
	test -z "$VERBOSE"
}

which is called on --continue/--abort/--skip before the saved options are loaded again.

Regards.
-- 
Stephan Beyer <s-beyer@gmx.net>, PGP 0x6EDDD207FCC5040F
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 3 of 5 in “Make rebase--interactive use OPTIONS_SPEC”
  1. Make rebase--interactive use OPTIONS_SPECStephan Beyer, Jul 12, 2008
  2. Johannes SchindelinJul 12, 2008
  3. Stephan BeyerJul 12, 2008
  4. Johannes SchindelinJul 12, 2008
  5. Stephan BeyerJul 12, 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.