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

[PATCHv2 3/3] Documentation/git-branch: add default for --contains

From
Vincent van Ravesteijn <vfr@lyx.org>
Date
Mar 6, 2012, 09:32 UTC
Message-ID
<1331026365-7044-3-git-send-email-user@vincent-VirtualBox>
In-Reply-To
<1331026365-7044-1-git-send-email-user@vincent-VirtualBox>
From: Vincent van Ravesteijn <vfr@lyx.org>
Indicate that the commit parameter of --contains defaults to HEAD.
Signed-off-by: Vincent van Ravesteijn <vfr@lyx.org>
---
 Documentation/git-branch.txt |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/Documentation/git-branch.txt b/Documentation/git-branch.txt
index cfceac5..6410c3d 100644
--- a/Documentation/git-branch.txt
+++ b/Documentation/git-branch.txt
@@ -163,8 +163,9 @@ start-point is either a local or remote-tracking branch.
 	Open an editor and edit the text to explain what the branch is
 	for, to be used by various other commands (e.g. `request-pull`).
 
---contains <commit>::
-	Only list branches which contain the specified commit.
+--contains [<commit>]::
+	Only list branches which contain the specified commit (HEAD
+	if not specified).
 
 --merged [<commit>]::
 	Only list branches whose tips are reachable from the
-- 
1.7.5.4
Previous: Vincent van RavesteijnNext: Junio C Hamano
Message 5 of 6 in “Documentation update for 'git branch'”
  1. Documentation update for 'git branch'vfr@lyx.org, Mar 6, 2012
  2. Thomas RastMar 6, 2012
  3. 1/3 Documentation/git-branch: cleanupsVincent van Ravesteijn, Mar 6, 2012
  4. 2/3 Documentation/git-branch: fix a typoVincent van Ravesteijn, Mar 6, 2012
  5. 3/3 Documentation/git-branch: add default for --containsVincent van Ravesteijn, Mar 6, 2012
  6. Junio C HamanoMar 6, 2012

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.