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

[PATCH] 'tig branch' opens tig in branch view

From
Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Date
Feb 22, 2009, 11:40 UTC
Message-ID
<1235302820-32526-2-git-send-email-giuseppe.bilotta@gmail.com>
In-Reply-To
<1235302820-32526-1-git-send-email-giuseppe.bilotta@gmail.com>
Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
---
 tig.1.txt |    4 ++++
 tig.c     |    6 ++++++
 2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/tig.1.txt b/tig.1.txt
index db8a4d7..abcd9f3 100644
--- a/tig.1.txt
+++ b/tig.1.txt
@@ -11,6 +11,7 @@ SYNOPSIS
 tig        [options] [revisions] [--] [paths]
 tig show   [options] [revisions] [--] [paths]
 tig blame  [rev] path
+tig branch
 tig status
 tig <      [git command output]
 
@@ -43,6 +44,9 @@ blame::
 	Show given file annotated or blamed by commits.
 	Optionally limited from given revision.
 
+branch::
+	Start up in branch view.
+
 status::
 	Start up in status view.
 
diff --git a/tig.c b/tig.c
index 60d73d5..20a40b9 100644
--- a/tig.c
+++ b/tig.c
@@ -7249,6 +7249,7 @@ static const char usage[] =
 "Usage: tig        [options] [revs] [--] [paths]\n"
 "   or: tig show   [options] [revs] [--] [paths]\n"
 "   or: tig blame  [rev] path\n"
+"   or: tig branch\n"
 "   or: tig status\n"
 "   or: tig <      [git command output]\n"
 "\n"
@@ -7321,6 +7322,11 @@ parse_options(int argc, const char *argv[])
 			warn("ignoring arguments after `%s'", subcommand);
 		return REQ_VIEW_STATUS;
 
+	} else if (!strcmp(subcommand, "branch")) {
+		if (argc > 2)
+			warn("ignoring arguments after `%s'", subcommand);
+		return REQ_VIEW_BRANCH;
+
 	} else if (!strcmp(subcommand, "blame")) {
 		if (argc <= 2 || argc > 4)
 			die("invalid number of options to blame\n\n%s", usage);
-- 
1.6.2.rc1.258.g1d592.dirty
Previous: Giuseppe BilottaNext: Jonas Fonseca
Message 2 of 6 in “Popup menu”
  1. Popup menuGiuseppe Bilotta, Feb 22, 2009
  2. 'tig branch' opens tig in branch viewGiuseppe Bilotta, Feb 22, 2009
  3. Jonas FonsecaFeb 22, 2009
  4. Giuseppe BilottaFeb 22, 2009
  5. Felipe ContrerasFeb 22, 2009
  6. Giuseppe BilottaFeb 22, 2009

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.