: nply/git-summary

commit cf6d70f7d4a7e424167567b16b67a9bd52623d42
parent b8d8e1a3fec106058d1cf74d35e9aa47ae64ae71
Author: Bryan Gardiner <bog@khumba.net>
Date: Thu, 20 Apr 2023 19:53:31 -0700

Add a manual page
1 file changed, 50 insertions(+), 0 deletions(-)
A
git-summary.1
|
50
++++++++++++++++++++++++++++++++++++++++++++++++++
diff --git a/git-summary.1 b/git-summary.1
@@ -0,0 +1,50 @@
+.TH GIT-SUMMARY 1 2023-04-13 git-summary ""
+.SH NAME
+GIT-SUMMARY - summarize the status of a collection of Git repositories
+.SH SYNOPSIS
+.B git-summary [-h] [-d] [-l] [-q] [-s] [path]
+.SH DESCRIPTION
+.P
+git-summary displays a table on the terminal summarizing the status of multiple
+Git repositories.
+If the given path is within a Git repository, then only information for that
+repository is shown.
+Otherwise (the path is not in a Git repository), subdirectories of this
+directory that are Git repositories are chosen.
+The default path if none is given is the current directory.
+.P
+Before displaying any information on a repository,
+.B git fetch
+is run to update remote information.
+.P
+Displayed information includes:
+.P
+- The repository location on disk.
+.br
+- The current branch name.
+.br
+- Presence of uncommitted changes.
+.br
+- Presence of untracked files.
+.br
+- Presence of unpushed and unpulled changes, if the current branch is tracking
+an upstream branch.
+.SH OPTIONS
+.TP
+-h
+Display a help message showing how to use the program.
+.TP
+-d
+Deep lookup, search the full directory tree for Git repositories.
+By default, only subdirectories immediately below the given one are checked.
+.TP
+-l
+Local operation only, do not fetch.
+.TP
+-q
+Quiet mode, only print outdated repositories.
+.TP
+-s
+Sorted output, display repositories in sorted order.
+By default, repositories are checked in parallel and may appear in any order.
+This mode slows down operation as it serializes fetching of remotes.