我应该解析git状态还是使用gitsharp? [英] Should I parse git status or use gitsharp?

查看:167
本文介绍了我应该解析git状态还是使用gitsharp?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将git整合到生产管道中以实现3dsmax文件的阶段。虽然可以通过TortoiseGit使用git,但我希望通过Maxscript与它进行交流以向3dsmax添加自定义菜单命令。

I'd like to integrate git into production pipeline to stage 3dsmax files. While it is alright to work with git through TortoiseGit, I'd like to communicate with it from the Maxscript to add custom menu commands to 3dsmax.

我应该解析 git status 输出文本来确定文件夹的状态,或者我应该使用一些包装工具来正确地与git通信?

Should I parse git status output text to determine folder status or should I use some wrapping tool to correctly communicate with git?

大约 gitsharp ,因为它很容易从Maxscript中调用dotNet对象,但我没有使用外部的dotNet程序。

I was thinking about gitsharp since it is easy to call dotNet objects from Maxscript, but I didn't use external dotNet programs.

推荐答案

我自己试图解决这个问题导致解析git状态。看起来更干净,更容易实施。另一方面,我正在寻找创建一个特殊的精心制作的XML文件,以更干净的方式获得所需的信息。

My own attempt to solve this resulted in parsing git status. Seems cleaner and easier to implement. On the other hand i'am looking forword to create an special crafted XML File to get the needed Information in a more "clean" Way.

这篇关于我应该解析git状态还是使用gitsharp?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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