Help us understand the problem. What is going on with this article?

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

More than 5 years have passed since last update.

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さん神

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした