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

[PATCH 1/2] bash: Support git-rebase -m continuation completion.

From
Shawn O. Pearce <spearce@spearce.org>
Date
Feb 6, 2007, 02:37 UTC
Message-ID
<20070206023754.GA9922@spearce.org>

Apparently `git-rebase -m` uses a metadata directory within .git (.git/.dotest-merge) rather than .dotest used by git-am (and git-rebase without the -m option). This caused the completion code to not offer --continue, --skip or --abort when working within a `git-rebase -m` session.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
---
 This is a resend.  You skipped this series of 2 patches.
 contrib/completion/git-completion.bash |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 430e636..b0ff87d 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -675,7 +675,7 @@ _git_push ()
 _git_rebase ()
 {
 	local cur="${COMP_WORDS[COMP_CWORD]}"
-	if [ -d .dotest ]; then
+	if [ -d .dotest ] || [ -d .git/.dotest-merge ]; then
 		__gitcomp "--continue --skip --abort"
 		return
 	fi
-- 
1.5.0.rc3.58.g79812
Message 1 of 1 in “bash: Support git-rebase -m continuation completion.”
  1. 1/2 bash: Support git-rebase -m continuation completion.Shawn O. Pearce, Feb 6, 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.