zwidny
zwidny

Reputation: 414

How to show Git merge commit details for a specific file

merge detail How do I know the commit results for the specified file, api/admin/message.py?

I searched, but the answer all is about git diff e6a666 0cd12c
Can I get the commit results for the specified file?
Thx

Upvotes: 1

Views: 102

Answers (1)

ElpieKay
ElpieKay

Reputation: 30958

From the log we can see it's a fast-forward merge from e6a6664c1 to 0cd12cdfb. So api/admin/message.py is updated by one or more commits between e6a6664c1(excluded) and 0cd12cdfb(included).

git diff e6a6664c1..0cd12cdfb -- api/admin/message.py

This command lists all the commit(s) that change(s) api/admin/message.py between e6a6664c1 and 0cd12cdfb.

Upvotes: 1

Related Questions