{"thread":{"id":"6043","subject":"[PATCH] Documentation/git-branch: new -r to delete remote-tracking branches.","startedAt":"2006-12-21T04:18:07Z","lastAt":"2006-12-21T04:18:07Z","messageCount":1,"participants":["Quy Tonthat"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"29895","messageId":"458A0AFF.5030208@gmail.com","threadId":"6043","inReplyTo":null,"subject":"[PATCH] Documentation/git-branch: new -r to delete remote-tracking branches.","fromName":"Quy Tonthat","fromEmail":"qtonthat@gmail.com","sentAt":"2006-12-21T04:18:07Z","receivedAt":"2006-12-21T04:18:07Z","isPatch":true,"sender":{"key":"qtonthat@gmail.com","avatar":null},"body":"\n\nSigned-off-by: Quy Tonthat <qtonthat@gmail.com>\n---\n\n\tFor the version of git-branch currently in \"next\".\n\n Documentation/git-branch.txt |   13 ++++++++-----\n 1 files changed, 8 insertions(+), 5 deletions(-)\n\ndiff --git a/Documentation/git-branch.txt b/Documentation/git-branch.txt\nindex 71417fe..c464bd2 100644\n--- a/Documentation/git-branch.txt\n+++ b/Documentation/git-branch.txt\n@@ -11,7 +11,7 @@ SYNOPSIS\n 'git-branch' [-r | -a] [-v [--abbrev=<length>]]\n 'git-branch' [-l] [-f] <branchname> [<start-point>]\n 'git-branch' (-m | -M) [<oldbranch>] <newbranch>\n-'git-branch' (-d | -D) <branchname>...\n+'git-branch' (-d | -D) [-r] <branchname>...\n \n DESCRIPTION\n -----------\n@@ -33,7 +33,8 @@ to happen.\n \n With a `-d` or `-D` option, `<branchname>` will be deleted.  You may\n specify more than one branch for deletion.  If the branch currently\n-has a ref log then the ref log will also be deleted.\n+has a ref log then the ref log will also be deleted. Use -r together with -d\n+to delete remote-tracking branches.\n \n \n OPTIONS\n@@ -60,7 +61,7 @@ OPTIONS\n \tMove/rename a branch even if the new branchname already exists.\n \n -r::\n-\tList the remote-tracking branches.\n+\tList or delete (if used with -d) the remote-tracking branches.\n \n -a::\n \tList both remote-tracking branches and local branches.\n@@ -111,10 +112,12 @@ Delete unneeded branch::\n ------------\n $ git clone git://git.kernel.org/.../git.git my.git\n $ cd my.git\n-$ git branch -D todo    <1>\n+$ git branch -d -r todo html man   <1>\n+$ git branch -D test               <2>\n ------------\n +\n-<1> delete todo branch even if the \"master\" branch does not have all\n+<1> delete remote-tracking branches \"todo\", \"html\", \"man\"\n+<2> delete \"test\" branch even if the \"master\" branch does not have all\n commits from todo branch.\n \n \n-- \n1.4.4.1.GIT\n"}]}