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

[PATCH] git-rebase: fix -C option

From
JFJ. Bruce Fields <bfields@citi.umich.edu>
Date
Sep 7, 2007, 14:20 UTC
Message-ID
<11891748511401-git-send-email-bfields@citi.umich.edu>
In-Reply-To
<11891748512757-git-send-email-bfields@citi.umich.edu>

The extra shift here causes failure to parse any commandline including the -C option.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
---
 git-rebase.sh |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/git-rebase.sh b/git-rebase.sh
index 52c686f..c9942f2 100755
--- a/git-rebase.sh
+++ b/git-rebase.sh
@@ -221,7 +221,6 @@ do
 		;;
 	-C*)
 		git_am_opt="$git_am_opt $1"
-		shift
 		;;
 	-*)
 		usage
-- 
1.5.3
Previous: J. Bruce Fields
Message 2 of 2 in “git-rebase: support --whitespace=<option>”
  1. git-rebase: support --whitespace=<option>J. Bruce Fields, Sep 7, 2007
  2. git-rebase: fix -C optionJ. Bruce Fields, Sep 7, 2007

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.