doc: update gitignore for .adoc extension

We presently use the ".txt" extension for our AsciiDoc files. While not wrong, most editors do not associate this extension with AsciiDoc, meaning that contributors don't get automatic editor functionality that could be useful, such as syntax highlighting and prose linting. Instead, in a future commit, we're going to move to using the more common ".adoc" extension for these files, which many editors intrinsically recognize as an AsciiDoc file. To avoid contributors accidentally checking in generated files, ignore the new extension for generated files in the documentation .gitignore files. Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

brian m. carlson committed Jan 20, 2025 at 01:55 UTC 89cdbffa8619b0f5e87bacf12dfa400259511b1e
2 files changed +5
Documentation/.gitignore
+4
@@ -7,10 +7,14 @@
7 git.info
8 gitman.info
9 howto-index.txt
10 +howto-index.adoc
11 doc.dep
12 cmds-*.txt
13 +cmds-*.adoc
14 mergetools-*.txt
15 +mergetools-*.adoc
16 SubmittingPatches.txt
17 +SubmittingPatches.adoc
18 tmp-doc-diff/
19 tmp-meson-diff/
20 GIT-ASCIIDOCFLAGS
Documentation/technical/.gitignore
+1
@@ -1 +1,2 @@
1 api-index.txt
2 +api-index.adoc