safetyduck
safetyduck

Reputation: 6874

How to check for git changes to a specific file across all commits in all branches (and non-branches) in local repo ordered by time?

Am trying to establish if a change was erased in a merge by somebody. Suppose the commit is still somewhere in the git commits. Does the following guarantee I will see the change regardless of how it was merged?

git log -p --all some_file

Upvotes: 0

Views: 63

Answers (1)

LeGEC
LeGEC

Reputation: 52151

By default git log overlooks the details of merge commits, you have to add one of the --diff-merges option.

In your case -c (short for --diff-merges=combined) is probably a good fit.

Also : add --graph, it really helps in understanding how commits are related.

Upvotes: 2

Related Questions