2017-03-01 2 views

답변

0

세트 B는 git log --%hB - A = {sha1 values of commits that don't include the file}이다, 세트 A는 git log --pretty=%h --follow <file>이며, 파일이 커밋에서 변경되지 않습니다 것을 의미합니다.

git log --pretty=%h --follow *file* > a.txt 
git log --pretty=%h *file* > b.txt 
sort b.txt a.txt a.txt | uniq -u 
+0

글쎄, 나는'sort' 대신'comm'을 사용 하겠지만, 그렇습니다. :-) – torek

관련 문제