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?
相关问题
- Why does recursive submodule update from github fa
- Extended message for commit via Visual Studio Code
- Emacs shell: save commit message
- Can I organize Git submodules in a flat hierarchy?
- Upload file > 25 MB on Github
相关文章
- 请教Git如何克隆本地库?
- GitHub:Enterprise post-receive hook
- Git Clone Fails: Server Certificate Verification F
- SSIS solution on GIT?
- Is there a version control system abstraction for
- ssh: Could not resolve hostname git: Name or servi
- Cannot commit changes with gitextensions
- git: retry if http request failed
Yes?: Something like
git log | git name-rev --stdin
, that is, see thegit name-rev
man page for obtaining this format.I had a similar question describe a commit relative to a tag in parent^/ancestor~ format which was linked back here ;-)
No.
The documentation for
git log
(git help log
) describes ways to customize the output using--pretty=tformat:...
, but unfortunately there is no placeholder forgit 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.