Martin Ågren
32c6fff4b8
cmd-list.perl: fix identifying man sections
...
We attribute each documentation text file to a man section by finding a
line in the file that looks like "gitfoo(<digit>)". Commit cc75e556a9
("scalar: add to 'git help -a' command list", 2022-09-02) updated this
logic to look not only for "gitfoo" but also "scalarfoo". In doing so,
it forgot to account for the fact that after the updated regex has found
a match, the man section is no longer to be found in `$1` but now lives
in `$2`.
This makes our git(1) manpage look as follows:
Main porcelain commands
git-add(git)
Add file contents to the index.
[...]
gitk(git)
The Git repository browser.
scalar(scalar)
A tool for managing large Git repositories.
Restore the man sections by not capturing the (git|scalar) part of the
match into `$1`.
As noted by Ævar [1], we could even match any "foo" rather than just
"gitfoo" and "scalarfoo", but that's a larger change. For now, just fix
the regression in cc75e556a9
.
[1] https://lore.kernel.org/git/220923.86wn9u4joo.gmgdl@evledraar.gmail.com/#t
Helped-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com >
Signed-off-by: Martin Ågren <martin.agren@gmail.com >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2022-09-23 10:01:07 -07:00
..
2022-09-15 16:09:46 -07:00
2022-08-04 14:12:24 -07:00
2022-09-07 09:46:05 -07:00
2022-04-03 15:09:52 -07:00
2022-09-21 15:27:03 -07:00
2022-09-21 15:27:02 -07:00
2021-10-15 10:29:11 -07:00
2021-10-18 15:47:58 -07:00
2022-09-23 10:01:07 -07:00
2022-09-12 11:04:55 -07:00
2022-08-05 15:51:36 -07:00
2021-11-09 09:39:11 -08:00
2022-06-13 11:57:03 -07:00
2021-04-28 13:34:44 +09:00
2022-02-16 15:14:30 -08:00
2022-04-04 10:56:23 -07:00
2022-09-14 12:56:40 -07:00
2022-09-14 12:56:40 -07:00
2022-09-07 09:46:05 -07:00
2021-10-28 09:57:09 -07:00
2022-06-15 13:19:47 -07:00
2022-09-07 09:46:07 -07:00
2022-09-07 09:46:07 -07:00
2022-08-12 13:20:02 -07:00
2022-09-12 11:04:55 -07:00
2022-08-05 15:52:14 -07:00
2022-02-03 11:13:49 -08:00
2021-01-12 14:04:40 -08:00
2022-01-13 13:49:45 -08:00
2022-09-07 09:46:07 -07:00
2022-08-03 13:47:11 -07:00
2022-09-07 09:46:06 -07:00
2022-09-14 12:56:40 -07:00
2022-09-07 09:46:07 -07:00
2022-09-14 12:56:40 -07:00
2022-09-07 09:46:06 -07:00
2022-07-14 15:08:29 -07:00
2022-04-06 16:06:06 -07:00
2021-10-28 09:57:09 -07:00
2021-11-09 09:39:11 -08:00
2021-11-09 09:39:11 -08:00
2022-07-19 12:45:31 -07:00
2022-07-19 12:45:31 -07:00
2021-05-17 15:56:29 +09:00
2022-08-12 13:20:02 -07:00
2021-11-09 09:39:11 -08:00
2022-06-13 11:59:16 -07:00
2021-11-09 09:39:11 -08:00
2022-09-07 09:46:07 -07:00
2022-09-07 09:46:06 -07:00
2022-09-07 09:46:06 -07:00
2022-03-28 10:25:52 -07:00
2022-09-07 09:46:07 -07:00
2021-12-20 14:55:02 -08:00
2021-07-26 12:01:25 -07:00
2022-08-29 14:39:13 -07:00
2022-09-07 09:46:05 -07:00
2022-04-06 16:06:06 -07:00
2022-09-07 09:46:05 -07:00
2022-09-07 09:46:05 -07:00
2021-11-09 09:39:11 -08:00
2022-08-04 14:12:23 -07:00
2022-01-07 15:19:34 -08:00
2021-09-10 15:34:59 -07:00
2021-11-09 09:39:11 -08:00
2021-11-09 09:39:11 -08:00
2022-09-07 09:46:05 -07:00
2022-03-09 10:25:26 -08:00
2021-11-09 09:39:11 -08:00
2022-09-07 09:46:07 -07:00
2022-08-30 10:17:34 -07:00
2022-09-14 12:56:40 -07:00
2022-07-23 10:53:55 -07:00
2022-04-08 11:21:11 -07:00
2022-09-07 09:46:06 -07:00
2022-09-07 09:46:06 -07:00
2021-12-01 14:45:59 -08:00
2021-11-09 09:39:11 -08:00
2022-06-22 16:10:06 -07:00
2022-09-14 12:56:40 -07:00
2021-02-09 14:09:16 -08:00
2022-09-07 09:46:05 -07:00
2021-04-10 23:36:34 -07:00
2022-02-02 14:50:09 -08:00
2022-08-04 14:12:24 -07:00
2022-01-10 09:39:26 -08:00
2022-09-07 09:46:06 -07:00
2022-05-04 10:30:01 -07:00
2022-05-26 15:48:26 -07:00
2021-11-09 09:39:11 -08:00
2021-10-18 15:47:56 -07:00
2022-09-07 09:46:06 -07:00
2022-08-26 09:49:26 -07:00
2022-06-03 14:30:33 -07:00
2022-09-14 12:56:40 -07:00
2021-08-05 08:59:37 -07:00
2022-08-01 14:33:44 -07:00
2022-05-09 10:53:58 -07:00
2022-05-26 15:48:26 -07:00
2021-11-09 09:39:11 -08:00
2022-03-23 14:39:45 -07:00
2021-12-01 14:45:59 -08:00
2021-02-17 16:25:29 -08:00
2022-09-14 12:56:40 -07:00
2021-09-28 10:31:02 -07:00
2022-09-07 09:46:05 -07:00
2021-09-12 18:57:30 -07:00
2021-11-09 09:39:11 -08:00
2022-09-07 09:46:06 -07:00
2022-04-21 23:12:39 -07:00
2021-11-09 09:39:11 -08:00
2022-09-07 09:46:06 -07:00
2021-10-21 17:24:30 -07:00
2022-02-09 15:38:36 -08:00
2021-12-10 14:35:03 -08:00
2022-09-07 09:46:07 -07:00
2021-02-19 19:36:47 -08:00
2022-09-12 11:04:55 -07:00
2022-09-12 11:04:55 -07:00
2021-11-03 13:25:36 -07:00
2021-09-14 10:05:40 -07:00
2021-10-28 09:57:09 -07:00
2022-04-04 10:56:25 -07:00
2022-09-21 10:28:35 -07:00
2022-03-12 18:15:47 -08:00
2022-01-17 11:42:25 -08:00
2021-11-09 09:39:11 -08:00
2021-03-22 14:00:24 -07:00
2021-08-05 15:35:02 -07:00
2022-08-04 14:12:23 -07:00
2022-08-04 14:12:24 -07:00
2022-08-04 14:12:24 -07:00
2022-08-14 23:19:28 -07:00
2022-08-04 14:12:24 -07:00
2022-08-04 14:12:24 -07:00
2022-01-07 15:19:34 -08:00
2021-10-25 11:06:56 -07:00
2021-05-04 11:52:03 +09:00
2021-05-04 11:52:03 +09:00
2021-04-10 23:36:34 -07:00
2022-09-16 08:38:03 -07:00
2022-08-04 14:12:23 -07:00
2022-08-04 14:12:24 -07:00
2022-08-04 14:12:24 -07:00
2022-09-16 08:38:03 -07:00
2022-08-10 14:07:37 -07:00
2021-11-09 09:39:11 -08:00
2021-07-30 09:08:12 -07:00
2021-04-08 15:54:26 -07:00
2021-10-25 11:06:57 -07:00
2021-11-09 09:39:11 -08:00
2022-02-09 18:34:41 -08:00
2021-02-24 15:21:25 -08:00
2021-10-15 10:29:11 -07:00
2021-10-15 10:16:57 -07:00
2022-08-04 14:12:23 -07:00
2022-09-21 15:27:02 -07:00
2021-10-29 11:22:56 -07:00
2021-08-05 15:35:02 -07:00
2022-09-21 10:28:35 -07:00
2022-09-21 10:28:35 -07:00
2021-12-15 09:39:48 -08:00
2021-10-29 14:35:59 -07:00
2022-08-03 13:57:25 -07:00
2022-08-29 14:55:11 -07:00
2022-09-19 14:36:08 -07:00
2022-07-27 13:19:52 -07:00
2022-09-02 10:02:55 -07:00
2022-05-11 08:19:08 -07:00
2022-04-21 09:50:25 -07:00
2021-11-09 09:39:11 -08:00
2022-09-16 08:38:03 -07:00