[PATCH v2 2/3] Fix C syntactic errors for the Plan 9 C compiler

2019-08-27 Thread lufia via GitGitGadget
From: lufia Signed-off-by: lufia --- compat/plan9/openssl/crypto.h | 5 + compat/regex/regex_internal.h | 3 +++ config.c | 3 ++- git-compat-util.h | 9 - parse-options.h | 18 +- remove-bitfields.sh | 17

[PATCH v2 1/3] Change HOME, PATH, and .gitconfig paths to be customizable

2019-08-27 Thread lufia via GitGitGadget
From: lufia In Plan 9, almost environment variables are not capitalized. Signed-off-by: lufia --- Makefile | 40 +--- builtin/config.c | 2 +- config.c | 2 +- credential-cache.c | 2 +- credential-store.c | 2 +- exec-cmd.c

[PATCH v2 3/3] Support Plan 9 dialect

2019-08-27 Thread lufia via GitGitGadget
From: lufia Plan 9 ANSI/POSIX environment is: * No expr(1) * sed(1) limits max length of label to 7 characters * pcc ignores object files that has incorrect extension, so should use underlying loader directly. * No ln(1). Instead use bind(1), but bind isn't persisted to the disk. However it i

[PATCH 6/6] Add mkfile to build git and subcommands for Plan 9

2019-08-03 Thread lufia via GitGitGadget
From: lufia Signed-off-by: lufia --- mkfile | 195 + 1 file changed, 195 insertions(+) create mode 100644 mkfile diff --git a/mkfile b/mkfile new file mode 100644 index 00..f0b06437ed --- /dev/null +++ b/mkfile @@ -0,0 +1,195 @@

[PATCH 2/6] Fix C syntactic errors for the Plan 9 C compiler

2019-08-03 Thread lufia via GitGitGadget
From: lufia Signed-off-by: lufia --- compat/plan9/openssl/crypto.h | 5 + compat/regex/regex_internal.h | 3 +++ config.c | 3 ++- git-compat-util.h | 9 - parse-options.h | 18 +- remove-bitfields.rc | 14

[PATCH 4/6] Port generate-cmdline.sh to rc

2019-08-03 Thread lufia via GitGitGadget
From: lufia Signed-off-by: lufia --- generate-cmdlist.rc | 102 1 file changed, 102 insertions(+) create mode 100755 generate-cmdlist.rc diff --git a/generate-cmdlist.rc b/generate-cmdlist.rc new file mode 100755 index 00..18699ea9c4 --- /d

[PATCH 5/6] Add plan9/wrap.c

2019-08-03 Thread lufia via GitGitGadget
From: lufia Plan 9 has bind(1) instead of ln(1), but bind isn't persisted to the disk. However it isn't efficient to copy git to git- subcommands such as git-add. Therefore Plan 9 needs wrap.c to switch behavior by executable name. Signed-off-by: lufia --- plan9/wrap.c | 16 1

[PATCH 3/6] GIT-VERSION-GEN: Use sed instead of expr

2019-08-03 Thread lufia via GitGitGadget
From: lufia Plan 9 don't have expr(1). Signed-off-by: lufia --- GIT-VERSION-GEN | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GIT-VERSION-GEN b/GIT-VERSION-GEN index a0766f64ed..754d4486f5 100755 --- a/GIT-VERSION-GEN +++ b/GIT-VERSION-GEN @@ -26,7 +26,7 @@ else V

[PATCH 1/6] Change HOME, PATH, and .gitconfig paths to be customizable

2019-08-03 Thread lufia via GitGitGadget
From: lufia In Plan 9, almost environment variables are not capitalized. Signed-off-by: lufia --- Makefile | 26 +- builtin/config.c | 2 +- config.c | 2 +- credential-cache.c | 2 +- credential-store.c | 2 +- exec-cmd.c | 4 ++-- gi