开发者

To hook into Git, would Ruby have an advantage over c#?

If I wanted to be able to do all things GIT via C# i.e. creating a c# wrapper so I can do things over the web (view repositories, files, diff of files etc).

Would Ruby have any advantages over c# (a开发者_JAVA百科nd .net)?


Not to answer your question directly but, have you seen http://code.google.com/p/gitsharp/ ?


C# has reputation of being easier to call into native code. However the vast majority of Git manipulation can be done with the "plumbing" commands and simple pipes; so I wouldn't think native code execution would be necessary for most needs.

Git is slightly more difficult to install on Windows; but that is a sunk cost and not a big deal, long-term. (You could also use Mono on Linux.)

So offhand, I would say no; the choice between C# vs. Ruby should come down to external factors such as which language you are stronger in, or which framework you prefer.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜