Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
git show-branch は、「dev~106^2~52」など、git-parse-rev で解析できる相対リビジョン式を使用してコミットを表示します。git-log から同じ出力を取得するにはどうすればよいですか?
いいえ。
git log( )のドキュメントではgit help log、 を使用して出力をカスタマイズする方法が説明されています--pretty=tformat:...が、残念ながら、git describeスタイルのリビジョン識別子のプレースホルダーも、シェル コマンドを実行してその出力を使用するプレースホルダーもありません。どちらでも、やりたいことができるようになります。おそらく、Git 開発者にそれらを提案できます。
git log
git help log
--pretty=tformat:...
git describe