Re: [PATCHv2 4/4] unpack-trees: support super-prefix option

2017-01-12 Thread Stefan Beller
On Thu, Jan 12, 2017 at 1:40 PM, Junio C Hamano wrote: > Stefan Beller writes: > >> This is only patchv4 that is rerolled, patches 1-3 remain as is. > > Good timing, as I was about to send a reminder to suggest rerolling > 4/4 alone ;-) > >> +static const char *super_prefixed(const char *path) >>

Re: [PATCHv2 4/4] unpack-trees: support super-prefix option

2017-01-12 Thread Junio C Hamano
Stefan Beller writes: > This is only patchv4 that is rerolled, patches 1-3 remain as is. Good timing, as I was about to send a reminder to suggest rerolling 4/4 alone ;-) > +static const char *super_prefixed(const char *path) > +{ There used to be a comment that explains why we keep two static

[PATCHv2 4/4] unpack-trees: support super-prefix option

2017-01-11 Thread Stefan Beller
In the future we want to support working tree operations within submodules, e.g. "git checkout --recurse-submodules", which will update the submodule to the commit as recorded in its superproject. In the submodule the unpack-tree operation is carried out as usual, but the reporting to the user need