contrib: add win32 credential-helper
PATCH v3 1/1 contrib: add win32 credential-helper
Since the Windows port of Git expects binary pipes, we need to make sure the helper-end also sets up binary pipes.
Side-step CRLF-issue in test to make it pass.
---
Sorry for the delay, but here's the third iteration of my credential helper for Windows' credential API.
The only change since v2 is that it now supports protocols without a host component, as suggested by Jeff King.
contrib/credential/wincred/Makefile | 8 + .../credential/wincred/git-credential-wincred.c | 357 +++++++++++++++++++++ t/lib-credential.sh | 4 + 3 files changed, 369 insertions(+) create mode 100644 contrib/credential/wincred/Makefile create mode 100644 contrib/credential/wincred/git-credential-wincred.c
contrib/credential/wincred/Makefile new file +8 -0
@@ -0,0 +1,8 @@ +all: git-credential-wincred.exe + +CC = gcc +RM = rm -f +CFLAGS = -O2 -Wall + +git-credential-wincred.exe : git-credential-wincred.c + $(LINK.c) $^ $(LOADLIBES) $(LDLIBS) -o $@
contrib/credential/wincred/git-credential-wincred.c new file +357 -0
357 lines not on this page · raw message
t/lib-credential.sh +4 -0
@@ -18,6 +18,10 @@ check() { cat stderr && false fi && + if test_have_prereq MINGW + then + dos2unix -q stderr + fi && test_cmp expect-stdout stdout && test_cmp expect-stderr stderr }
Signature · 15 lines
1.7.11.msysgit.0.5.g0225efe.dirty -- *** Please reply-to-all at all times *** *** (do not pretend to know who is subscribed and who is not) *** *** Please avoid top-posting. *** The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free. You received this message because you are subscribed to the Google Groups "msysGit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, and view previous threads, visit this group at http://groups.google.com/group/msysgit?hl=en_US?hl=en
Quoted 5 lines · Erik Faye-Lund
Since the Windows port of Git expects binary pipes, we need to make sure the helper-end also sets up binary pipes.
Side-step CRLF-issue in test to make it pass.
Quoted 9 lines
Signed-off-by Erik Faye-Lund <[email protected]>---
Sorry for the delay, but here's the third iteration of my credential helper for Windows' credential API.
The only change since v2 is that it now supports protocols without a host component, as suggested by Jeff King.
...aaand just as I sent it out, I realized that my Makefile was a bit on the light side. Imagine this patch on top for now, please :)
(quoted diff) +0 -0
b/contrib/credential/wincred/Makefile
index b4f098f..bad45ca 100644
contrib/credential/wincred/Makefile +6 -0
@@ -4,5 +4,11 @@ CC = gcc RM = rm -f CFLAGS = -O2 -Wall +-include ../../../config.mak.autogen +-include ../../../config.mak + git-credential-wincred.exe : git-credential-wincred.c $(LINK.c) $^ $(LOADLIBES) $(LDLIBS) -o $@ + +clean: + $(RM) git-credential-wincred.exe
Signature · 12 lines
*** Please reply-to-all at all times *** *** (do not pretend to know who is subscribed and who is not) *** *** Please avoid top-posting. *** The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free. You received this message because you are subscribed to the Google Groups "msysGit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, and view previous threads, visit this group at http://groups.google.com/group/msysgit?hl=en_US?hl=en
Quoted 26 lines · Erik Faye-Lund
Quoted 5 lines · Erik Faye-Lund
Since the Windows port of Git expects binary pipes, we need to make sure the helper-end also sets up binary pipes.
Side-step CRLF-issue in test to make it pass.
Quoted 9 lines
Signed-off-by Erik Faye-Lund <[email protected]>---
Sorry for the delay, but here's the third iteration of my credential helper for Windows' credential API.
The only change since v2 is that it now supports protocols without a host component, as suggested by Jeff King.
...aaand just as I sent it out, I realized that my
Makefilewas a bit on the light side. Imagine this patch on top for now, please :)contrib/credential/wincred/Makefile +0
-0@@ -4,5 +4,11 @@ CC = gcc RM = rm -f
contrib/credential/wincred/Makefile CC = gcc · line 14
Quoted 10 lines
contrib/credential/wincred/Makefile +6
-0CFLAGS = -O2 -Wall +-include ../../../config.mak.autogen +-include ../../../config.mak + git-credential-wincred.exe : git-credential-wincred.c $(LINK.c) $^ $(LOADLIBES) $(LDLIBS) -o $@ + +clean: + $(RM) git-credential-wincred.exe
I notice that I didn't queue either of these; are you still polishing them, or are they in good enough shape that it wouldn't make things harder for you if I queue it, with a plan to merge it soon after 1.7.12?
Quoted 18 lines · Junio C Hamano
Quoted 16 lines · Erik Faye-Lund
Quoted 14 lines · Erik Faye-Lund
Since the Windows port of Git expects binary pipes, we need to make sure the helper-end also sets up binary pipes.
Side-step CRLF-issue in test to make it pass.
Signed-off-by Erik Faye-Lund <[email protected]>---
Sorry for the delay, but here's the third iteration of my credential helper for Windows' credential API.
The only change since v2 is that it now supports protocols without a host component, as suggested by Jeff King.
Quoted 9 lines
Quoted 3 lines
...aaand just as I sent it out, I realized that my
Makefilewas a bit on the light side. Imagine this patch on top for now, please :)I notice that I didn't queue either of these; are you still polishing them, or are they in good enough shape that it wouldn't make things harder for you if I queue it, with a plan to merge it soon after 1.7.12?
As far as I'm concerned, I consider this complete from my point of view. Should I send out a new version with the fixup squashed in?
Quoted 2 lines · Erik Faye-Lund
As far as I'm concerned, I consider this complete from my point of view. Should I send out a new version with the fixup squashed in?
I've already queued them as one commit. Thanks.