From 59ea2e018e05e7a4033d572f819f4a696ab74397 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Wed, 20 Feb 2019 21:56:33 +0100 Subject: add a "version" command with various outputs, including the git hash and tag --- doc/man/git-bug-version.1 | 41 +++++++++++++++++++++++++++++++++++++++++ doc/man/git-bug.1 | 2 +- doc/md/git-bug.md | 1 + doc/md/git-bug_version.md | 25 +++++++++++++++++++++++++ 4 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 doc/man/git-bug-version.1 create mode 100644 doc/md/git-bug_version.md (limited to 'doc') diff --git a/doc/man/git-bug-version.1 b/doc/man/git-bug-version.1 new file mode 100644 index 00000000..09bf6cf4 --- /dev/null +++ b/doc/man/git-bug-version.1 @@ -0,0 +1,41 @@ +.TH "GIT-BUG" "1" "Feb 2019" "Generated from git-bug's source code" "" +.nh +.ad l + + +.SH NAME +.PP +git\-bug\-version \- Show git\-bug version information + + +.SH SYNOPSIS +.PP +\fBgit\-bug version [flags]\fP + + +.SH DESCRIPTION +.PP +Show git\-bug version information + + +.SH OPTIONS +.PP +\fB\-n\fP, \fB\-\-number\fP[=false] + Only show the version number + +.PP +\fB\-c\fP, \fB\-\-commit\fP[=false] + Only show the commit hash + +.PP +\fB\-a\fP, \fB\-\-all\fP[=false] + Show all version informations + +.PP +\fB\-h\fP, \fB\-\-help\fP[=false] + help for version + + +.SH SEE ALSO +.PP +\fBgit\-bug(1)\fP diff --git a/doc/man/git-bug.1 b/doc/man/git-bug.1 index 82e9087a..123f9a33 100644 --- a/doc/man/git-bug.1 +++ b/doc/man/git-bug.1 @@ -31,4 +31,4 @@ the same git remote your are already using to collaborate with other peoples. .SH SEE ALSO .PP -\fBgit\-bug\-add(1)\fP, \fBgit\-bug\-bridge(1)\fP, \fBgit\-bug\-commands(1)\fP, \fBgit\-bug\-comment(1)\fP, \fBgit\-bug\-deselect(1)\fP, \fBgit\-bug\-label(1)\fP, \fBgit\-bug\-ls(1)\fP, \fBgit\-bug\-ls\-label(1)\fP, \fBgit\-bug\-pull(1)\fP, \fBgit\-bug\-push(1)\fP, \fBgit\-bug\-select(1)\fP, \fBgit\-bug\-show(1)\fP, \fBgit\-bug\-status(1)\fP, \fBgit\-bug\-termui(1)\fP, \fBgit\-bug\-title(1)\fP, \fBgit\-bug\-webui(1)\fP +\fBgit\-bug\-add(1)\fP, \fBgit\-bug\-bridge(1)\fP, \fBgit\-bug\-commands(1)\fP, \fBgit\-bug\-comment(1)\fP, \fBgit\-bug\-deselect(1)\fP, \fBgit\-bug\-label(1)\fP, \fBgit\-bug\-ls(1)\fP, \fBgit\-bug\-ls\-label(1)\fP, \fBgit\-bug\-pull(1)\fP, \fBgit\-bug\-push(1)\fP, \fBgit\-bug\-select(1)\fP, \fBgit\-bug\-show(1)\fP, \fBgit\-bug\-status(1)\fP, \fBgit\-bug\-termui(1)\fP, \fBgit\-bug\-title(1)\fP, \fBgit\-bug\-version(1)\fP, \fBgit\-bug\-webui(1)\fP diff --git a/doc/md/git-bug.md b/doc/md/git-bug.md index 2cc44eff..e88cfd0c 100644 --- a/doc/md/git-bug.md +++ b/doc/md/git-bug.md @@ -39,5 +39,6 @@ git-bug [flags] * [git-bug status](git-bug_status.md) - Display or change a bug status * [git-bug termui](git-bug_termui.md) - Launch the terminal UI * [git-bug title](git-bug_title.md) - Display or change a title +* [git-bug version](git-bug_version.md) - Show git-bug version information * [git-bug webui](git-bug_webui.md) - Launch the web UI diff --git a/doc/md/git-bug_version.md b/doc/md/git-bug_version.md new file mode 100644 index 00000000..6b6d4288 --- /dev/null +++ b/doc/md/git-bug_version.md @@ -0,0 +1,25 @@ +## git-bug version + +Show git-bug version information + +### Synopsis + +Show git-bug version information + +``` +git-bug version [flags] +``` + +### Options + +``` + -n, --number Only show the version number + -c, --commit Only show the commit hash + -a, --all Show all version informations + -h, --help help for version +``` + +### SEE ALSO + +* [git-bug](git-bug.md) - A bug tracker embedded in Git + -- cgit