Merge branch 'js/check-docs-exe'

Dev support update.

* js/check-docs-exe:
  check-docs: fix for setups where executables have an extension
  check-docs: do not expect guide pages to correspond to commands
  check-docs: really look at the documented commands again
  docs: do not document the `git remote-testgit` command
  docs: move gitremote-helpers into section 7
maint
Junio C Hamano 2019-04-22 11:14:46 +09:00
commit 27ff787809
8 changed files with 10 additions and 41 deletions

View File

@ -12,7 +12,6 @@ MAN1_TXT += $(filter-out \
$(wildcard git-*.txt)) $(wildcard git-*.txt))
MAN1_TXT += git.txt MAN1_TXT += git.txt
MAN1_TXT += gitk.txt MAN1_TXT += gitk.txt
MAN1_TXT += gitremote-helpers.txt
MAN1_TXT += gitweb.txt MAN1_TXT += gitweb.txt


MAN5_TXT += gitattributes.txt MAN5_TXT += gitattributes.txt
@ -30,6 +29,7 @@ MAN7_TXT += gitdiffcore.txt
MAN7_TXT += giteveryday.txt MAN7_TXT += giteveryday.txt
MAN7_TXT += gitglossary.txt MAN7_TXT += gitglossary.txt
MAN7_TXT += gitnamespaces.txt MAN7_TXT += gitnamespaces.txt
MAN7_TXT += gitremote-helpers.txt
MAN7_TXT += gitrevisions.txt MAN7_TXT += gitrevisions.txt
MAN7_TXT += gitsubmodules.txt MAN7_TXT += gitsubmodules.txt
MAN7_TXT += gittutorial-2.txt MAN7_TXT += gittutorial-2.txt

View File

@ -118,7 +118,7 @@ begins with `ext::`. Examples:


SEE ALSO SEE ALSO
-------- --------
linkgit:gitremote-helpers[1] linkgit:gitremote-helpers[7]


GIT GIT
--- ---

View File

@ -52,7 +52,7 @@ EXAMPLES


SEE ALSO SEE ALSO
-------- --------
linkgit:gitremote-helpers[1] linkgit:gitremote-helpers[7]


GIT GIT
--- ---

View File

@ -1,7 +1,7 @@
git-remote-helpers git-remote-helpers
================== ==================


This document has been moved to linkgit:gitremote-helpers[1]. This document has been moved to linkgit:gitremote-helpers[7].


Please let the owners of the referring site know so that they can update the Please let the owners of the referring site know so that they can update the
link you clicked to get here. link you clicked to get here.

View File

@ -1,30 +0,0 @@
git-remote-testgit(1)
=====================

NAME
----
git-remote-testgit - Example remote-helper


SYNOPSIS
--------
[verse]
git clone testgit::<source-repo> [<destination>]

DESCRIPTION
-----------

This command is a simple remote-helper, that is used both as a
testcase for the remote-helper functionality, and as an example to
show remote-helper authors one possible implementation.

The best way to learn more is to read the comments and source code in
'git-remote-testgit'.

SEE ALSO
--------
linkgit:gitremote-helpers[1]

GIT
---
Part of the linkgit:git[1] suite

View File

@ -1,4 +1,4 @@
gitremote-helpers(1) gitremote-helpers(7)
==================== ====================


NAME NAME
@ -513,8 +513,6 @@ linkgit:git-remote-ext[1]


linkgit:git-remote-fd[1] linkgit:git-remote-fd[1]


linkgit:git-remote-testgit[1]

linkgit:git-fast-import[1] linkgit:git-fast-import[1]


GIT GIT

View File

@ -62,7 +62,7 @@ may be used:


where <address> may be a path, a server and path, or an arbitrary where <address> may be a path, a server and path, or an arbitrary
URL-like string recognized by the specific remote helper being URL-like string recognized by the specific remote helper being
invoked. See linkgit:gitremote-helpers[1] for details. invoked. See linkgit:gitremote-helpers[7] for details.


If there are a large number of similarly-named remote repositories and If there are a large number of similarly-named remote repositories and
you want to use a different format for them (such that the URLs you you want to use a different format for them (such that the URLs you

View File

@ -3078,7 +3078,7 @@ ALL_COMMANDS += git-gui git-citool
.PHONY: check-docs .PHONY: check-docs
check-docs:: check-docs::
$(MAKE) -C Documentation lint-docs $(MAKE) -C Documentation lint-docs
@(for v in $(ALL_COMMANDS); \ @(for v in $(patsubst %$X,%,$(ALL_COMMANDS)); \
do \ do \
case "$$v" in \ case "$$v" in \
git-merge-octopus | git-merge-ours | git-merge-recursive | \ git-merge-octopus | git-merge-ours | git-merge-recursive | \
@ -3099,15 +3099,16 @@ check-docs::
( \ ( \
sed -e '1,/^### command list/d' \ sed -e '1,/^### command list/d' \
-e '/^#/d' \ -e '/^#/d' \
-e '/guide$$/d' \
-e 's/[ ].*//' \ -e 's/[ ].*//' \
-e 's/^/listed /' command-list.txt; \ -e 's/^/listed /' command-list.txt; \
$(MAKE) -C Documentation print-man1 | \ $(MAKE) -C Documentation print-man1 | \
grep '\.txt$$' | \ grep '\.txt$$' | \
sed -e 's|Documentation/|documented |' \ sed -e 's|^|documented |' \
-e 's/\.txt//'; \ -e 's/\.txt//'; \
) | while read how cmd; \ ) | while read how cmd; \
do \ do \
case " $(ALL_COMMANDS) " in \ case " $(patsubst %$X,%,$(ALL_COMMANDS)) " in \
*" $$cmd "*) ;; \ *" $$cmd "*) ;; \
*) echo "removed but $$how: $$cmd" ;; \ *) echo "removed but $$how: $$cmd" ;; \
esac; \ esac; \