<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/649fec6fa207884bbd654f4d92ff5bef6ca946b7">https://github.com/macports/macports-ports/commit/649fec6fa207884bbd654f4d92ff5bef6ca946b7</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 649fec6fa20 git: credential_osxkeychain: create global gitconfig
</span>649fec6fa20 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 649fec6fa207884bbd654f4d92ff5bef6ca946b7
</span>Author: Gregory Anders <greg@gpanders.com>
AuthorDate: Mon May 3 13:32:25 2021 -0600
<span style='display:block; white-space:pre;color:#404040;'> git: credential_osxkeychain: create global gitconfig
</span>---
devel/git/Portfile | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/git/Portfile b/devel/git/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 91cc354d134..95f8bda7271 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/git/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/git/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,7 +5,7 @@ PortGroup perl5 1.0
</span>
name git
version 2.31.1
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span>
description A fast version control system
long_description Git is a fast, scalable, distributed open source version \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -214,7 +214,26 @@ variant credential_osxkeychain description {Install git credential-osxkeychain u
</span> post-destroot {
xinstall -m 755 "${worksrcpath}/contrib/credential/osxkeychain/git-credential-osxkeychain" \
"${destroot}${prefix}/libexec/git-core/"
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Create a global gitconfig file that sets credential.helper to
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # osxkeychain. This can be overriden on a per-user basis in the user's
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # own git config file
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set f [open ${destroot}${prefix}/etc/gitconfig w 0644]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ puts ${f} "\[credential]\n\thelper = osxkeychain"
</span> }
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ notes "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+A gitconfig file has been created at ${prefix}/etc/gitconfig to enable the
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+osxkeychain credential helper. If you do not wish to use this credential
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+helper, you can override this setting in your own git config file, e.g.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ \[credential]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ helper = some_other_credential_helper
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+For more information, run
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ git help credentials
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+"
</span> }
variant diff_highlight description {Install git diff-highlight utility from contrib} {
</pre><pre style='margin:0'>
</pre>