git log - Can git track that certain lines were copied from another file? -
first, have file abc.java, , has 10 lines of code. then, in same commit, remove lines abc.java , set them in xyz.java. there way git blame
or git log
can follow history of lines across files?
here i'm wanting. want git log -l100,110:xyz.java
(see -l documentation), , not see commits touching 10 lines in xyz.java, commits changed lines when in abc.java.
short answer: no.
git able track every file individually (it create hash every file). git seek assume if file/folder has been renamed (it have same hash). means, though, tracking of individual lines not possible.
git git-log
No comments:
Post a Comment