加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

Emacs:为什么shell命令“git log”有效,但“git shortlog”不行

发布时间:2020-12-16 01:13:25 所属栏目:安全 来源:网络整理
导读:我无法弄清楚这一点.为什么这些行为有所不同: (shell-command "git log")(shell-command "git shortlog") 第一个按预期工作:返回0并将东西打印到shell输出缓冲区. 第二个返回0但不打印任何内容.这是为什么? 也 git log和git shortlog在ansi-term中都能很
我无法弄清楚这一点.为什么这些行为有所不同:
(shell-command "git log")
(shell-command "git shortlog")

第一个按预期工作:返回0并将东西打印到shell输出缓冲区.
第二个返回0但不打印任何内容.这是为什么?

> git log和git shortlog在ansi-term中都能很好地工作
> git log和git shortlog都会发出警告,但仍然可以在shell中运行

男人git-shortlog

If no revisions are passed on the command line and either standard
input is not a terminal or there is no
current branch,git shortlog will output a summary of the log read from standard input,without reference to
the current repository.

您必须明确提供您案例中的工作参考,

请改用git shortlog HEAD.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读