如何让git-log使用git-parse-rev的相关修订语法显示提交 [英] How to get git-log to display commits using relative revision syntax of git-parse-rev

查看:125
本文介绍了如何让git-log使用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:... ,但不幸的是没有 git describe 样式修订标识符的占位符,也没有一个占位符来运行一个shell命令并使用它的输出。要么可以做你想做的事。也许你可以把它们推荐给Git开发者。

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屋!

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