Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/git/git-scm.com.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2022-10-05 20:42:47 +0300
committerGitHub <noreply@github.com>2022-10-05 20:42:47 +0300
commitc3f88338802a4c4c04841175bb95491e9f6eaae4 (patch)
tree0b31dcffc7b604c43f8980f1b0f02fcffe0ffb40
parent45b48fa53fc346f8812ecf70db6baa74b13ba08b (diff)
parentb6e2701de7559860af72596469e073f8920414ab (diff)
Merge pull request #1737 from git/loosen-manpage-match
index_doc(): loosen match of "git-cmd(1)" on manpages
-rw-r--r--lib/tasks/index.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/index.rake b/lib/tasks/index.rake
index dc47a9ce..c5c933fe 100644
--- a/lib/tasks/index.rake
+++ b/lib/tasks/index.rake
@@ -200,7 +200,7 @@ def index_doc(filter_tags, doc_list, get_content)
links = cmd_list[category].map do |cmd, attr|
if cmd_file = tag_files.detect { |ent| ent.first == "Documentation/#{cmd}.txt" }
content = get_content.call(cmd_file.second)
- section = content.match(/^git.*\(([1-9])\)/)[1]
+ section = content.match(/^[a-z0-9-]+\(([1-9])\)/)[1]
if match = content.match(/NAME\n----\n\S+ - (.*)$/)
"linkgit:#{cmd}[#{section}]::\n\t#{attr == 'deprecated' ? '(deprecated) ' : ''}#{match[1]}\n"
end