使用NodeGit读取Git配置变量 [英] Reading Git config variable using NodeGit

查看:902
本文介绍了使用NodeGit读取Git配置变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

NodeGit似乎没有提供任何API来检索Git配置值。



请参阅 http://www.nodegit.org/#Config



我期待着像Config#getValue()或类似的API来检索配置值。

也许,到目前为止它在NodeGit中是缺少的,因为libgit2有这些API。



任何提示?

解决方案

NodeGit目前不会公开libgit2的配置功能。这应该不会太难,但我不知道它是否会进入计划用于下一版本的0.3.0版本。



我创建了一个问题,您可以跟踪是否要更新其进度。

NodeGit does not seem to be providing any API to retrieve Git configuration values.

See http://www.nodegit.org/#Config

I was expecting something like Config#getValue() or similar API to retrieve configuration values.

Perhaps, it is missing in NodeGit as of now, since libgit2 has those APIs.

Any hints?

解决方案

NodeGit currently doesn't expose the config functionality of libgit2. That shouldn't be too hard to get in there but I don't know if it'll make into the 0.3.0 release that is scheduled for the next release.

I created an issue that you can track if you want updates on the progress of it.

这篇关于使用NodeGit读取Git配置变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆