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

[PATCH] Documentation: explain "git branch --with"

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Sep 7, 2010, 05:52 UTC
Message-ID
<20100907055209.GT1182@burratino>
In-Reply-To
<7v39tmtpci.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
Show 8 quoted lines
> It was originally called --with.  I wrote it to help me in the exact use
> case in this thread, and the option was naturally named --with, as the
> request I wanted to make was "Give me branches _with_ this commit, so that
> I know which ones I need to rewind before reintegrating and publishing".
> 
> Somehow people wanted to see an option with a longer name, but by that
> time my fingers were well trained, so I kept "--with" but didn't bother
> advertising duplicated options.

More precisely, it is advertised by "git branch --help-all" but not the manual or "git branch -h".

How about adding it to the man page so people can look up this option after encountering it in the wild?

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
---
 Documentation/git-branch.txt |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Documentation/git-branch.txt b/Documentation/git-branch.txt
index 1940256..f479e2f 100644
--- a/Documentation/git-branch.txt
+++ b/Documentation/git-branch.txt
@@ -142,6 +142,7 @@ start-point is either a local or remote branch.
 	branch points to is not changed.
 
 --contains <commit>::
+--with <commit>::
 	Only list branches which contain the specified commit.
 
 --merged [<commit>]::
-- 
1.7.2.3
Previous: Junio C HamanoNext: Ævar Arnfjörð Bjarmason
Message 9 of 13 in “Determining commit reachability”
  1. Artur SkawinaSep 5, 2010
  2. Jeff KingSep 6, 2010
  3. Artur SkawinaSep 6, 2010
  4. Junio C HamanoSep 6, 2010
  5. Sverre RabbelierSep 6, 2010
  6. Ævar Arnfjörð BjarmasonSep 6, 2010
  7. Sverre RabbelierSep 6, 2010
  8. Junio C HamanoSep 6, 2010
  9. Documentation: explain "git branch --with"Jonathan Nieder, Sep 7, 2010
  10. Ævar Arnfjörð BjarmasonSep 7, 2010
  11. Junio C HamanoSep 9, 2010
  12. Nguyen Thai Ngoc DuySep 7, 2010
  13. Nguyen Thai Ngoc DuySep 7, 2010

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.