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
  • 62,391
  • 29
  • 139
  • 237
mtrc
  • 1,237
  • 2
  • 16
  • 36

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
  • 24,740
  • 3
  • 61
  • 82
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
  • 75,315
  • 26
  • 174
  • 199
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,245
  • 9
  • 4