code: plan9front

Download patch

ref: 4573bb5550de7917d8fc6276a3650a3d2dfedff0
parent: ad7120b2e2f0ed0d226eec1b5ef6fc6b3eebb4ef
author: qwx <qwx@sciops.net>
date: Fri Dec 1 14:23:39 EST 2023

git(1): conform NAME to indexing assumptions

- putting the dash and label on their own line breaks an assumption
  in /sys/lib/man/secindex
- /sys/man/1/INDEX will then have an entry '^ git$' instead of
  '^git git$'
- if by luck or by being deuteron man is passed the argument '-?',
  it is interpreted as a query, not an option
- '^-? ' is searched for and matches the ' git' line
- man -? (or '-?') displays git(1) instead of erroring with
  'no manual page'

--- a/sys/man/1/git
+++ b/sys/man/1/git
@@ -2,8 +2,7 @@
 .SH NAME
 git, git/conf, git/query, git/walk, git/clone, git/branch,
 git/commit, git/diff, git/init, git/log, git/merge, git/push,
-git/pull, git/rm, git/serve
-\- Manage git repositories.
+git/pull, git/rm, git/serve \- Manage git repositories.
 
 .SH SYNOPSIS
 .PP