0

I know when certain commits were created (at remote A, say) based on their log messages. What I don't know is when remote B fetched and merged said revision. I need it to determine when a bug crept in.

Is this possible through Git?

ThinkingStiff
  • 64,767
  • 30
  • 146
  • 239
mtrc
  • 1,317
  • 3
  • 16
  • 39

3 Answers3

0

If this is fetch, try git reflog --date=local, see https://stackoverflow.com/a/3748722/88442 . if it have a local merge, a git log would do.

Community
  • 1
  • 1
J-16 SDiZ
  • 26,473
  • 4
  • 65
  • 84
0

Assuming that you have fetched the remote, you can simply check what branches on the remote contain the commit by doing:

 git branch -r --contains <commit-SHA> | grep origin

You'll see the branches on the remote (change origin to the appropriate name) that contain the commit, or no output if none.

CharlesB
  • 86,532
  • 28
  • 194
  • 218
0

Logs are kept in ".git/logs". You're probably interested in ".git/logs/HEAD" on the checkout you're interested in. These logs contain pulls, checkouts, commits, etc., along with the time they occurred.

Graeme
  • 1,445
  • 1
  • 10
  • 4