Re: Expose subprojects as special files to "git diff" machinery
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Apr 15, 2007, 21:03 UTC
- Message-ID
- <Pine.LNX.4.64.0704151402130.5473@woody.linux-foundation.org>
- In-Reply-To
- <200704152116.26773.andyparkins@gmail.com>
On Sun, 15 Apr 2007, Andy Parkins wrote:
Show 8 quoted lines
> > +++ b/sub-A > > @@ -1 +1 @@ > > -Subproject commit 2de597b5ad348b7db04bd10cdd38cd81cbc93ab5 > > +Subproject commit e8f11a45c5c6b9e2fec6d136d3fb5aff75393d42 > > Isn't this dangerous because it looks just like a normal diff with a > file being rewritten, when in truth it is a tree entry record being > rewritten.
Well, that's exactly what symlinks do too.
You have to look at the mode to know what the rewriting *means*.
But yeah, I wouldn't object at all to making it an "extended git header" instead (possibly just for subprojects, possibly for symlinks too)
Linus