LoginSignup
3
3

More than 5 years have passed since last update.

UCさんに教えてもらったgitのコミット間差分を一覧表示するコマンド

Last updated at Posted at 2014-01-31

UCさんに教えてもらいました。

現在滞在しているコミットと特定のコミットの差分を表示する

現在 => HEAD
特定のコミット => 9f539749b88466544ce9df5f3eb0e23fc493a33b

コマンド

# git log --oneline 9f539749b88466544ce9df5f3eb0e23fc493a33b..HEAD

実行結果

a881959 pmxReader header for pmx_morph
7d3c336 pmxReader::parseBone() and fixed potential ARM memory alignment error
535076b pmxReader::parseMaterials()
383990f pmxReader::parseTextures()
7bc4400 pmxReader::paresIndices() and fixed bugs
64d5a68 pmxReader::parseVertices()
c259073 writing pmxReader
934977b changes for debug
87c2742 some shaders change
ac59cd6 add refresh button
25f4e8a fixed texture loading filename bugs
e27a220 now, you can Party!
2eda474 removed compiler warnings for ZipArchive

特定のコミットAと特定のコミットBの差分を表示する

特定のコミットA => 6936fe0a2a31344e59445f82392ecc324c5d9935
特定のコミットB => 9f539749b88466544ce9df5f3eb0e23fc493a33b

コマンド

# git log --oneline 6936fe0a2a31344e59445f82392ecc324c5d9935..9f539749b88466544ce9df5f3eb0e23fc493a33b

実行結果

9f53974 Download zip file and unzip
ff13d2f MikuMikuConnection created

行に番号をつけたいとき

コマンドのうしろに下記をつける。

| awk '{print NR " " $0}'

結論

UCさん神

3
3
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3