通过命令行调用TortoiseGit的“显示日志” [英] Call TortoiseGit's 'show log' by commandline

查看:1803
本文介绍了通过命令行调用TortoiseGit的“显示日志”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows中通过命令行输入git-directory时,我想要一个命令行,它显示了Tortoisegit的 show log GUI。



所以我想避免打开资源管理器 - >进入文件夹 - 点击右键 - >等等。但是我仍然想要Tortoisegit的漂亮的 show log 图表。



我如何在cmd中执行此操作?

解决方案

在命令行界面中(假设PATH很好),只需使用:

TortoiseGitProc / command:log



否则,

TortoiseGitProc / command:log / path:the \path\you\want\to\open\log






cf。 TortoiseGit手册 - 附录D.自动化TortoiseGit






要获取确切的命令参数,请转到TortoiseGit - >设置 - >高级树节点 - >将选项调试值设置为true。



然后通过正常的方式打开日志,你会得到额外的消息对话框。例如:





然后使用 Ctrl + C 复制整个邮件,并将其粘贴到某处,例如:notepad,然后重新使用命令行。 b
$ b

(顺便说一下,你可以很容易地忽略/ hwnd参数。)


When entering a git-directory through the commandline in Windows I want a commandline which shows me the Tortoisegit's show log GUI.

So I want to avoid the open explorer->go to folder-click right->etc. thing, but I still want the nice looking show log graph of Tortoisegit.

How do I perform this in the cmd?

解决方案

When you are in command line interface (assume the PATH is good), just use:

TortoiseGitProc /command:log

otherwise,

TortoiseGitProc /command:log /path:"the\path\you\want\to\open\log"


cf. TortoiseGit Manual - Appendix D. Automating TortoiseGit


For getting the exact command argument, go to TortoiseGit -> Settings -> Advanced tree node -> set Option "Debug" value to true.

Then open the log via normal way, you will get extra message dialog. Something like:

Then use Ctrl + C to copy the whole message, and paste it to somewhere, ex: notepad, and reuse the command line.

(BTW, you can easily ignore the /hwnd argument.)

这篇关于通过命令行调用TortoiseGit的“显示日志”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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