Re: RFC: git cat-file --follow-symlinks?
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Apr 29, 2015, 21:16 UTC
- Message-ID
- <20150429211615.GR5467@google.com>
- In-Reply-To
- <1430341032.14907.9.camel@ubuntu>
Hi,
David Turner wrote:
> Instead, it would be cool if cat-file had a mode in which it would > follow symlinks.
Makes sense.
Show 5 quoted lines
> The major wrinkle is that symlinks can point outside the repository -- > either because they are absolute paths, or because they are relative > paths with enough ../ in them. For this case, I propose that > --follow-symlinks should output [sha] "symlink" [target] instead of the > usual [sha] "blob" [bytes].
What happens when the symlink payload contains a newline?
Thanks, Jonathan