Re: [PATCHv2] rev-parse: add --show-superproject-working-tree

2017-03-07 Thread Junio C Hamano
Looks more or less right but invoke "ls-files -z" and reading the \0 delimited output would be easier; otherwise you would have to worry about c-unquoting the pathname when the submodule is bound at a path with funny character (like a double-quote) in it. Also, returning the exact string of the pa

Re: [PATCHv2] rev-parse: add --show-superproject-working-tree

2017-03-07 Thread Junio C Hamano
Stefan Beller writes: > + if (!strcmp(arg, "--show-superproject-working-tree")) { > + const char *superproject = > get_superproject_working_tree(); > + if (superproject) > + puts(super