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

help reproduce fast-forward in rebase

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
May 20, 2009, 08:13 UTC
Message-ID
<fcaeb9bf0905200113s43eb5693l24a1f8848bafabd2@mail.gmail.com>
Hi,

I'm rewriting rebase in C and do not quite understand this code inside git-rebase.sh

# If the $onto is a proper descendant of the tip of the branch, then
# we just fast forwarded.
if test "$mb" = "$branch"
then
	echo >&2 "Fast-forwarded $branch_name to $onto_name."
	move_to_original_branch
	exit 0
fi
Anyone has an example how to make "git rebase" execute that code?
-- 
Duy
Next: Johannes Sixt
Message 1 of 4 in “help reproduce fast-forward in rebase”
  1. Nguyen Thai Ngoc DuyMay 20, 2009
  2. Johannes SixtMay 20, 2009
  3. Stephan BeyerMay 20, 2009
  4. Nguyen Thai Ngoc DuyMay 20, 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.