On 06/07/2016 07:29 PM, Junio C Hamano wrote:
> Michael Haggerty writes:
>
>> If we don't have to strip trailing '/' from the submodule path, then
>> don't allocate and copy the submodule name.
>
> Makes sense.
>
>> int resolve_gitlink_ref(const char *path, const char *refname, unsigned
>> ch
Michael Haggerty writes:
> If we don't have to strip trailing '/' from the submodule path, then
> don't allocate and copy the submodule name.
Makes sense.
> int resolve_gitlink_ref(const char *path, const char *refname, unsigned char
> *sha1)
> {
> - int len = strlen(path);
> - struc
If we don't have to strip trailing '/' from the submodule path, then
don't allocate and copy the submodule name.
Signed-off-by: Michael Haggerty
---
refs.c | 20 +---
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/refs.c b/refs.c
index 5e0777a..7a8ef6d 100644
---
3 matches
Mail list logo