]> git.ipfire.org Git - thirdparty/git.git/commit
completion: make sed command that generates config-list.h portable.
authorCollin Funk <collin.funk1@gmail.com>
Mon, 2 Jun 2025 22:31:32 +0000 (15:31 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 3 Jun 2025 00:21:49 +0000 (17:21 -0700)
commitdb170e18262ed10e5e9b7f3cbca6a0ac43267b20
treee74cf847d862202b92086a0cecdb3e72edf49533
parentb07857f7dcffee4d3b428df8dce6c9b49a57c9c1
completion: make sed command that generates config-list.h portable.

The OpenBSD 'sed' command does not support '\n' to represent newlines in
sed expressions. This leads to the follow compiler error:

    In file included from builtin/help.c:15:
    ./config-list.h:282:18: error: use of undeclared identifier 'n'
            "gitcvs.dbUser",n       "gitcvs.dbPass",
                            ^
    1 error generated.
    gmake: *** [Makefile:2821: builtin/help.o] Error 1

We can fix this by documenting related configuration variables
one-per-line instead of listing them separated by commas. This allows us
to remove the unportable part of the sed expression in
generate-configlist.sh.

Signed-off-by: Collin Funk <collin.funk1@gmail.com>
Reviewed-by: Jacob Keller <jacob.keller@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/gitcvs.adoc
Documentation/config/http.adoc
generate-configlist.sh