jakesankey / git-history

View previous versions of any file known to git.
https://atom.io/packages/git-history
MIT License
28 stars 10 forks source link

Commits made before renaming a file are not listed in history #27

Closed misko321 closed 8 years ago

misko321 commented 9 years ago

If you move or rename a file (even with git mv), git-history shows only those commits that were made after the change. Unless it's done by purpose, I think it would be more useful to show all versions of the file.

It seems that git's --follow option does the job: https://stackoverflow.com/questions/3701404/list-all-commits-for-a-specific-file

jakesankey commented 9 years ago

You are correct. This package does not utilize the --follow option.. There was really not a lot of thought behind this other than that nobody has asked for it. I will plan to put it in in the next release unless you would like to do it and submit a pull request before then.