如何让git-log使用git-parse-rev的相关修订语法显示提交 [英] How to get git-log to display commits using relative revision syntax of git-parse-rev
问题描述
git show-branch显示使用相关修订表达式的提交,可以通过git-parse-rev解析,例如dev〜106 ^ 2〜52。如何从git-log获得相同的输出?
git show-branch displays commits using the relative revision expressions that can be parsed by git-parse-rev, for example "dev~106^2~52". How can I get the same output from git-log?
推荐答案
否。
git log
( git help log
>)的文档描述了使用 - pretty = tformat:...
,但不幸的是没有
The documentation for git log
(git help log
) describes ways to customize the output using --pretty=tformat:...
, but unfortunately there is no placeholder for git describe
-style revision identifiers, nor is there a placeholder to run a shell command and use its output. Either would make it possible to do what you want. Perhaps you can suggest them to the Git developers.
这篇关于如何让git-log使用git-parse-rev的相关修订语法显示提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!