How to build git-credential-wincred?

52 views
Skip to first unread message

M Hickford

unread,
Jan 19, 2024, 7:00:59 AMJan 19
to git-for...@googlegroups.com
Hi. Is anyone familiar with how to build credential helper
git-credential-wincred [1]?

I successfully built the rest of Git in Visual Studio 2022 using CMake
[2] but this didn't include git-credential-wincred.

-M

[1] https://github.com/git-for-windows/git/tree/main/contrib/credential/wincred
[2] https://github.com/git-for-windows/git/blob/main/contrib/buildsystems/CMakeLists.txt

Johannes Schindelin

unread,
Feb 7, 2024, 5:16:18 AMFeb 7
to M Hickford, git-for...@googlegroups.com
Hi,

the CMake definition indeed has no option to build anything in `contrib`,
the only `contrib`-related thing it does is to copy files from
`contrib/completion/` that are required (!!!) for Git's test suite to
pass.

FWIW this is how we build it in Git for Windows:
https://github.com/git-for-windows/MINGW-packages/blob/6ffeea3defc2bdb27aa681a35cffc99012339d41/mingw-w64-git/PKGBUILD#L184-L189
It requires the Git for Windows SDK (see
https://gitforwindows.org/#download-sdk) which is a friendly fork of MSYS2
(for more information about that, see
https://github.com/git-for-windows/git/blob/HEAD/ARCHITECTURE.md#a-software-distribution-really).

Ciao,
Johannes
> --
> You received this message because you are subscribed to the Google Groups "git-for-windows" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to git-for-windo...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/git-for-windows/CAGJzqskbvFrVzGmZeA39Pi99KVEZV0t0Jz7qFGaSq84wcAQt3A%40mail.gmail.com.
>
Reply all
Reply to author
Forward
0 new messages