Re: [RFC/PATCH 0/7] Rework git core for native submodules
- From
Ramkumar Ramachandra <artagnon@gmail.com>
- Date
- Apr 4, 2013, 23:14 UTC
- Message-ID
- <CALkWK0mcii_YGqiQTxhSOfgzn7MOHO0TEO3Rx3cRQLOi1ij5Tg@mail.gmail.com>
- In-Reply-To
- <7vli8xgahc.fsf@alter.siamese.dyndns.org>
Junio C Hamano wrote:
Show 7 quoted lines
> "git log -p .gitmodules" would be a way to review what changed in > the information about submodules. Don't you need "git log-link" for > exactly the same reason why you need "git diff-link" in the first > place? > > So you may not have suggested it, but I suspect that was only > because you haven't had enough time to think things through.
What is this git log -p .gitmodules doing? It's walking down the commit history, and picking out the commits in which that blob changed. Then it's diffing the blobs in those commits with each other. Why is git log -p <link> any different? We already know how to diff blobs, and we just need a way to diff links.