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

[PATCH] Fix rebase interactive to allow specifying branch to rebase along with the base

From
Alex Riesen <raa.lkml@gmail.com>
Date
Aug 1, 2007, 22:32 UTC
Message-ID
<20070801223241.GB2911@steel.home>
In-Reply-To
<20070801214556.GA2911@steel.home>
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
 git-rebase--interactive.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Alex Riesen, Wed, Aug 01, 2007 23:45:56 +0200:
>     $ git rebase -i base branch
>     /usr/local/bin/git-rebase--interactive: 482: cannot create /home/user/projects/tmp/.git/.dotest-merge/output: Directory nonexistent
>     cat: /home/user/projects/tmp/.git/.dotest-merge/output: No such file or directory
>     Invalid branchname: branch
Oh... Sometimes I can *very* slow. I believe it is as simple as that
 git-rebase--interactive.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh
index 061cd0a..b42dee8 100755
--- a/git-rebase--interactive.sh
+++ b/git-rebase--interactive.sh
@@ -404,6 +404,7 @@ do
 		esac
 
 		require_clean_work_tree
+		mkdir "$DOTEST" || die "Could not create temporary $DOTEST"
 
 		if test ! -z "$2"
 		then
@@ -418,7 +419,6 @@ do
 
 		test -z "$ONTO" && ONTO=$UPSTREAM
 
-		mkdir "$DOTEST" || die "Could not create temporary $DOTEST"
 		: > "$DOTEST"/interactive || die "Could not mark as interactive"
 		git symbolic-ref HEAD > "$DOTEST"/head-name ||
 			die "Could not get HEAD"
-- 
1.5.3.rc3.123.ge9877
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 7 of 9 in “rebase -i: handle --continue more like non-interactive rebase”
  1. 1/3 rebase -i: handle --continue more like non-interactive rebaseJohannes Schindelin, Jul 8, 2007
  2. Johannes SchindelinJul 8, 2007
  3. Alex RiesenJul 12, 2007
  4. Johannes SchindelinAug 1, 2007
  5. Alex RiesenAug 1, 2007
  6. rebase -i: fix for optional [branch] parameterJohannes Schindelin, Aug 1, 2007
  7. Fix rebase interactive to allow specifying branch to rebase along with the baseAlex Riesen, Aug 1, 2007
  8. Johannes SchindelinAug 1, 2007
  9. Alex RiesenAug 1, 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.