开发者

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

开发者 https://www.devze.com 2022-12-13 10:26 出处:网络
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).

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

精彩评论

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