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

[PATCH 10/17] Add documentation for the --topo-order option to git-show-branch.

From
NWNikolai Weibull <mailing-lists.git@rawuncut.elitemail.org>
Date
Dec 8, 2005, 23:28 UTC
Message-ID
<11340844852416-git-send-email-mailing-lists.git@rawuncut.elitemail.org>
In-Reply-To
<11340844853882-git-send-email-mailing-lists.git@rawuncut.elitemail.org>
Signed-off-by: Nikolai Weibull <nikolai@bitwi.se>
---
 Documentation/git-show-branch.txt |    8 +++++++-
 show-branch.c                     |    2 +-
 2 files changed, 8 insertions(+), 2 deletions(-)
1458ff5267fcaa7b2178e53865cd5056e3776d8d
diff --git a/Documentation/git-show-branch.txt b/Documentation/git-show-branch.txt
index 304101d..ffe64d8 100644
--- a/Documentation/git-show-branch.txt
+++ b/Documentation/git-show-branch.txt
@@ -7,7 +7,7 @@ git-show-branch - Show branches and thei
 
 SYNOPSIS
 --------
-'git-show-branch [--all] [--heads] [--tags] [--more=<n> | --list | --independent | --merge-base] [--no-name | --sha1-name] [<rev> | <glob>]...'
+'git-show-branch [--all] [--heads] [--tags] [--topo-order] [--more=<n> | --list | --independent | --merge-base] [--no-name | --sha1-name] [<rev> | <glob>]...'
 
 DESCRIPTION
 -----------
@@ -35,6 +35,12 @@ OPTIONS
 	Show all refs under $GIT_DIR/refs, $GIT_DIR/refs/heads,
 	and $GIT_DIR/refs/tags, respectively.
 
+--topo-order::
+        By default, the branches and their commits are shown in
+        reverse chronological order.  This option makes them
+        appear in topological order (i.e., descendant commits
+        are shown before their parents).
+
 --more=<n>::
 	Usually the command stops output upon showing the commit
 	that is the common ancestor of all the branches.  This
diff --git a/show-branch.c b/show-branch.c
index bff690d..64a55dc 100644
--- a/show-branch.c
+++ b/show-branch.c
@@ -5,7 +5,7 @@
 #include "refs.h"
 
 static const char show_branch_usage[] =
-"git-show-branch [--all] [--heads] [--tags] [--more=count | --list | --independent | --merge-base ] [<refs>...]";
+"git-show-branch [--all] [--heads] [--tags] [--topo-order] [--more=count | --list | --independent | --merge-base ] [<refs>...]";
 
 #define UNINTERESTING	01
 
-- 
0.99.9l
Previous: Nikolai Weibull
Message 2 of 2 in “Add documentation for git-revert and git-cherry-pick.”
  1. 9/17 Add documentation for git-revert and git-cherry-pick.Nikolai Weibull, Dec 8, 2005
  2. 10/17 Add documentation for the --topo-order option to git-show-branch.Nikolai Weibull, Dec 8, 2005

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.