Re: 'git log' doesn't keep log of un-removed and then renamed directory
- From
Chris Torek <chris.torek@gmail.com>
- Date
- Aug 14, 2021, 10:22 UTC
- Message-ID
- <CAPx1Gve4GoMtH5s-3-RQgf0szvpW-DdFn7GygzAzg_e6vTCrLQ@mail.gmail.com>
- In-Reply-To
- <CAPx1Gvdb=rtjWmc1Qe5iZyuwSF+s-YO7G__VUZ=iZw3x4bAKCw@mail.gmail.com>
I should add: to make this work in that future smarter `git log` command, be sure to:
1. commit the un-removal first; then 2. commit the rename (you can just `git mv` the directory and commit)
so that the future smarter `git log` has an easy way of finding this. Ideally, it would find this even without that, but having all the files / sub-trees have identical hash IDs will make this much faster and easier.