Skip to contentSkip to conversation

maint: Include top-level *.rst files early in git diff

PATCH Applied Eric Blake 5 participants 6 messages Feb 20, 2020 – Mar 9, 2020

lore
Share & tools
lore

Eric Blake

author
#0 lore raw

PATCH 1/1 maint: Include top-level *.rst files early in git diff

We are converting more doc files to *.rst rather than *.texi. Most doc files are already listed early in diffs due to our catchall docs/*, but a few top-level files get missed by that glob.

---

Both *.texi and *.rst entries make sense while we are still converting things, but we'll need a followup to drop *.texi when the conversion is complete...

 scripts/git.orderfile | 1 +
 1 file changed, 1 insertion(+)
scripts/git.orderfile +1 -0
index 1f747b583a9e..abd8a67a2b4e 100644
@@ -11,6 +11,7 @@
 
 # Documentation
 docs/*
+*.rst
 *.texi
 
 # build system
Signature · 1 line
2.24.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 19 lines · Eric Blake

We are converting more doc files to *.rst rather than *.texi. Most doc files are already listed early in diffs due to our catchall docs/*, but a few top-level files get missed by that glob.

---

Both *.texi and *.rst entries make sense while we are still converting things, but we'll need a followup to drop *.texi when the conversion is complete...

 scripts/git.orderfile | 1 +
 1 file changed, 1 insertion(+)
scripts/git.orderfile +0 -0
index 1f747b583a9e..abd8a67a2b4e 100644

scripts/git.orderfile line 17

Quoted 7 lines
scripts/git.orderfile +1 -0
@@ -11,6 +11,7 @@
 
 # Documentation
 docs/*
+*.rst
 *.texi
 
 # build system
#2 lore raw
In reply to Eric Blake
Quoted 11 lines · Eric Blake

We are converting more doc files to *.rst rather than *.texi. Most doc files are already listed early in diffs due to our catchall docs/*, but a few top-level files get missed by that glob.

---

Both *.texi and *.rst entries make sense while we are still converting things, but we'll need a followup to drop *.texi when the conversion is complete...

I was wondering what rst files we had outside docs, and the answer is "README.rst, CODING_STYLE.rst and tests/acceptance/README.rst".

(There's a reasonable argument for moving CODING_STYLE.rst to docs/devel now; depends how highly you rate having it more "discoverable" to new contributors.)

thanks
-- PMM

#3 lore raw
Quoted 13 lines · Peter Maydell
Quoted 11 lines · Eric Blake

We are converting more doc files to *.rst rather than *.texi. Most doc files are already listed early in diffs due to our catchall docs/*, but a few top-level files get missed by that glob.

---

Both *.texi and *.rst entries make sense while we are still converting things, but we'll need a followup to drop *.texi when the conversion is complete...

Quoted 7 lines

I was wondering what rst files we had outside docs, and the answer is "README.rst, CODING_STYLE.rst and tests/acceptance/README.rst".

(There's a reasonable argument for moving CODING_STYLE.rst to docs/devel now; depends how highly you rate having it more "discoverable" to new contributors.)

The little cynic in the back of my head cackles and points out that CODING_STYLE.rst exists not for new contributors to discover, but so that old contributors have something to smack on new heads.

SCNR :)

author
#4 lore raw
In reply to Peter Maydell
Quoted 13 lines · Peter Maydell
Quoted 11 lines · Eric Blake

We are converting more doc files to *.rst rather than *.texi. Most doc files are already listed early in diffs due to our catchall docs/*, but a few top-level files get missed by that glob.

---

Both *.texi and *.rst entries make sense while we are still converting things, but we'll need a followup to drop *.texi when the conversion is complete...

Quoted 7 lines

I was wondering what rst files we had outside docs, and the answer is "README.rst, CODING_STYLE.rst and tests/acceptance/README.rst".

(There's a reasonable argument for moving CODING_STYLE.rst to docs/devel now; depends how highly you rate having it more "discoverable" to new contributors.)

Or even:
git mv CODING_STYLE.rst docs/devel/CODING_STYLE.rst ln -s docs/devel/CODING_STYLE.rst .
git add CODING_STYLE.rst

to turn it into a git link in the top level for easy discoverabilty on a fresh checkout, while still making it part of our overall built documentation.

Signature · 3 lines
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org
#5 lore raw
In reply to Eric Blake

Le 20/02/2020 à 17:22, Eric Blake a écrit :

Quoted 20 lines

We are converting more doc files to *.rst rather than *.texi. Most doc files are already listed early in diffs due to our catchall docs/*, but a few top-level files get missed by that glob.

---

Both *.texi and *.rst entries make sense while we are still converting things, but we'll need a followup to drop *.texi when the conversion is complete...

 scripts/git.orderfile | 1 +
 1 file changed, 1 insertion(+)
scripts/git.orderfile +0 -0
index 1f747b583a9e..abd8a67a2b4e 100644

scripts/git.orderfile line 17

Quoted 7 lines
scripts/git.orderfile +1 -0
@@ -11,6 +11,7 @@
 
 # Documentation
 docs/*
+*.rst
 *.texi
 
 # build system

Applied to my trivial-patches branch.

Thanks,
Laurent