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

Re: [PATCH] branch: add support for --dry-run option

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Jan 19, 2015, 14:20 UTC
Message-ID
<54BD12C3.5050802@drmicha.warpmail.net>
In-Reply-To
<1421480159-4848-1-git-send-email-kuleshovmail@gmail.com>
Alexander Kuleshov schrieb am 17.01.2015 um 08:35:
Show 17 quoted lines
> This patch adds support -d/--dry-run option for branch(es) deletion.
> If -d/--dry-run option passed to git branch -d branch..., branch(es)
> will not be removed, instead just print list of branches that are
> to be removed.
> 
> For example:
> 
>     $ git branch
>     a
>     b
>     c
>     * master
> 
>     $ git branch -d -n a b c
>     delete branch 'a' (261c0d1)
>     delete branch 'b' (261c0d1)
>     delete branch 'c' (261c0d1)
Is there a case where deleting "a b c" would not delete "a b c"?

In other words: What new information does a dry-run give the user, other than what "branch --list -v" would give already? (We could need a shortcut on the latter, but that is a different topic.)

Michael
Previous: Philip OakleyNext: Scott Schmit
Message 3 of 5 in “branch: add support for --dry-run option”
  1. branch: add support for --dry-run optionAlexander Kuleshov, Jan 17, 2015
  2. Philip OakleyJan 17, 2015
  3. Michael J GruberJan 19, 2015
  4. Scott SchmitJan 22, 2015
  5. Michael J GruberJan 22, 2015

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.