문제

My submodule ref pointer was moved back a few revisions and I would like to know who commited that change to our main repo, how can I do that? How can I get a log just for submodule reference? Because going through every commit searching for changed submodule reference is not an option.

도움이 되었습니까?

해결책

You can simply check the log for the gitlink representing your submodule in your parent repo:

git log -- yourSubmodule

No trailing '/' here: yoursubmodule is the name of the folder in which your submodule is checked out.
But it is also the name of the gitlink (special entry mode 160000) recording that submodule in the parent repo.

That will list only the commits in which yoursubmodule gitlink has changed.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top