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

[PATCH] bash: support branch's new '--merged' and '--unmerged' options

From
SZEDER Gábor <szeder@ira.uka.de>
Date
Apr 17, 2008, 11:34 UTC
Message-ID
<1208432040-26271-1-git-send-email-szeder@ira.uka.de>
In-Reply-To
<12084250231245-git-send-email-hjemli@gmail.com>
Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
---
> These options filter the output from git branch to only include branches
> whose tip is either merged or not merged into HEAD.

I really like the idea, thanks! How about making it easier to type?

 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 4d81963..c44f9f4 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -543,7 +543,7 @@ _git_branch ()
 	--*)
 		__gitcomp "
 			--color --no-color --verbose --abbrev= --no-abbrev
-			--track --no-track
+			--track --no-track --merged --unmerged
 			"
 		;;
 	*)
-- 
1.5.5.90.g17e355
Previous: Lars HjemliNext: Lars Hjemli
Message 2 of 8 in “git-branch: add support for --merged and --unmerged”
  1. git-branch: add support for --merged and --unmergedLars Hjemli, Apr 17, 2008
  2. bash: support branch's new '--merged' and '--unmerged' optionsSZEDER Gábor, Apr 17, 2008
  3. git-branch: add support for --merged and --no-mergedLars Hjemli, Apr 17, 2008
  4. Junio C HamanoApr 17, 2008
  5. git-branch: add support for --merged and --no-mergedLars Hjemli, Apr 17, 2008
  6. Junio C HamanoApr 17, 2008
  7. git-branch.txt: compare --contains, --merged and --no-mergedLars Hjemli, Apr 17, 2008
  8. Lars HjemliApr 17, 2008

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.