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

Re: [PATCH] Add --ff-only flag to git-merge

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jan 28, 2009, 13:26 UTC
Message-ID
<alpine.DEB.1.00.0901281425180.3586@pacific.mpi-cbg.de>
In-Reply-To
<1233147238-30082-1-git-send-email-nothingmuch@woobling.org>
Hi,
On Wed, 28 Jan 2009, Yuval Kogman wrote:
Show 8 quoted lines
> @@ -1012,6 +1015,9 @@ int cmd_merge(int argc, const char **argv, const char *prefix)
>  		finish(o->sha1, msg.buf);
>  		drop_save();
>  		return 0;
> +	} else if ( only_fast_forward ) {
> +		printf("Merge is non fast forward, aborting.\n");
> +		return 1;
>  	} else if (!remoteheads->next && common->next)
If you compare the two if() lines, you will see that you mixed style.

Ciao, Dscho

Previous: Yuval KogmanNext: Yuval Kogman
Message 2 of 9 in “Add --ff-only flag to git-merge”
  1. Add --ff-only flag to git-mergeYuval Kogman, Jan 28, 2009
  2. Johannes SchindelinJan 28, 2009
  3. Yuval KogmanJan 28, 2009
  4. Sverre RabbelierJan 28, 2009
  5. Junio C HamanoJan 28, 2009
  6. Yuval KogmanJan 29, 2009
  7. Junio C HamanoJan 29, 2009
  8. Add --ff-only flag to git-merge (take 2)Yuval Kogman, Jan 30, 2009
  9. Add --ff-only flag to git-mergeYuval Kogman, Jan 30, 2009

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.