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

[PATCH] completion: fix mis-indentation in _git_stash()

From
SZEDER Gábor <szeder@ira.uka.de>
Date
Feb 22, 2016, 13:02 UTC
Message-ID
<1456146170-17556-1-git-send-email-szeder@ira.uka.de>
In-Reply-To
<20160126093718.GC77046@wagland.net>
Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
---
 contrib/completion/git-completion.bash | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 45ec47f2b1b4..e3918c87e3ad 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -2415,8 +2415,8 @@ _git_stash ()
 		show,--*|branch,--*)
 			;;
 		branch,*)
-		  if [ $cword -eq 3 ]; then
-			__gitcomp_nl "$(__git_refs)";
+			if [ $cword -eq 3 ]; then
+				__gitcomp_nl "$(__git_refs)";
 			else
 				__gitcomp_nl "$(git --git-dir="$(__gitdir)" stash list \
 						| sed -n -e 's/:.*//p')"
-- 
2.7.1.384.g61d9461
Previous: Paul Wagland
Message 10 of 10 in “Update BASH completions”
  1. 0/2 Update BASH completionsPaul Wagland, Jan 23, 2016
  2. PATCH 1/2] Update the flags for git show-branchPaul Wagland, Jan 23, 2016
  3. Junio C HamanoJan 25, 2016
  4. 2/2 Fix up the arguments for git stash.Paul Wagland, Jan 23, 2016
  5. Junio C HamanoJan 25, 2016
  6. Paul WaglandJan 26, 2016
  7. 0/2 Update BASH completionsPaul Wagland, Jan 26, 2016
  8. 1/2 completion: complete show-branch "--date-order"Paul Wagland, Jan 26, 2016
  9. 2/4 completion: update completion arguments for stashPaul Wagland, Jan 26, 2016
  10. completion: fix mis-indentation in _git_stash()SZEDER Gábor, Feb 22, 2016

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.