Skip to content

RFC Documentation: refactor config variable descriptions

Thomas Rast git 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest2 of 3 patches 13 repliesIn review
  2. v1 RFC1 of 24 patches 10 repliesSuperseded

2 of 3 patches are in this archive. The cover letter announces 3.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Demonstrate a bug in --word-diff where diff.*.wordregex is "sticky"t/t4034-diff-words.sh+37 -09 replies
3/3Documentation: move format.* documentation to format-patchDocumentation/config-vars-src.txt Documentation/git-format-patch.txt+61 -600 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchThomas RastJohannes Sixt
1/3Helped-by Noticed-by
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [RFC PATCH v2 0/3] Documentation: refactor config variable descriptions

This resurrects (finally) the earlier attempt at

http://mid.gmane.org/[email protected]

It tries the inverse approach: teaching the script how to find config variable blocks in each manpage, and then linking them from the main list. (Obviously just inserting them into the main list could also work.)

In other words, it attempts to push out the "original" documentation of each variable from the main list to the individual manpage, which is exactly opposite from v1.

This has the advantage that it does not make the source .txt for each manpage "unreadable by themselves", as the earlier approach did (and Jonathan noticed).

It also has the advantage that it will shrink config-vars.txt over time.

Instead of going through all manpages again, I just tacked on a sample patch as 3/3 that shows what the use/effect could be. Once we settle on the direction (v1 or v2) of the refactoring, I'll make more patches or resurrect the old ones.

I'm afraid 1/3 (semantically unchanged from the equivalent patch in v1) will again not make it through, so I again pushed this out:

git://repo.or.cz/git/trast.git t/doc-config-extraction-v2

(incidentally v1 is still there as t/doc-config-extraction). I based it on master; 1/3 is prone to conflicts but can easily be recreated from scratch.

Thomas Rast (3):
Documentation: Move variables from config.txt to separate file
Documentation: complete config list from other manpages
Documentation: move format.* documentation to format-patch

 Documentation/Makefile              |    9 +-
 Documentation/config-vars-src.txt   | 1691 +++++++++++++++++++++++++++++++++
 Documentation/config.txt            | 1748 +----------------------------------
 Documentation/git-format-patch.txt  |   65 ++-
 Documentation/make-config-list.perl |  131 +++
 5 files changed, 1892 insertions(+), 1752 deletions(-)
 create mode 100644 Documentation/config-vars-src.txt
 create mode 100755 Documentation/make-config-list.perl
Signature · 1 line
1.7.3.1.281.g5da0b