gpt4 book ai didi

.net - svn 钩子(Hook)是否因为 .NET 而读取 vbs、ruby、... 脚本?

转载 作者:行者123 更新时间:2023-12-04 05:33:38 24 4
gpt4 key购买 nike

我是 .NET 世界的新手,我想澄清一下我的理解。

SVN Hook 能够读取 Ruby 或 Visual Basic 脚本等的原因是因为 Hook 是在 .NET 框架下编译的吗?

谢谢

最佳答案

根据Docs ,每个可执行文件都可以用于 Hook :

On Unix platforms, this means supplying a script or program (which could be a shell script, a Python program, a compiled C binary, or any number of other things) named exactly like the name of the hook. Of course, the template files are present for more than just informational purposes—the easiest way to install a hook on Unix platforms is to simply copy the appropriate template file to a new file that lacks the .tmpl extension, customize the hook's contents, and ensure that the script is executable. Windows, however, uses file extensions to determine whether or not a program is executable, so you would need to supply a program whose basename is the name of the hook, and whose extension is one of the special extensions recognized by Windows for executable programs, such as .exe or .com for programs, and .bat for batch files.



所以简短的回答是:不。

关于.net - svn 钩子(Hook)是否因为 .NET 而读取 vbs、ruby、... 脚本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12264980/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com