Thread (66 messages) flat view 66 messages, 5 authors, 2021-08-11

Re: [GSoC] [PATCH v4 4/8] dir: libify and export helper functions from clone.c

From: Atharva Raykar <hidden>
Date: 2021-08-11 10:26:03

Kaartic Sivaraam [off-list ref] writes:
On 09/08/21 1:32 pm, Atharva Raykar wrote:
quoted
Kaartic Sivaraam [off-list ref] writes:
quoted
On 07/08/21 12:46 pm, Atharva Raykar wrote:
quoted
quoted
[ ... ]
Yikes! I meant 'host.xz:foo/.git'. That should give us 'foo'. Thanks for
the correction.
Interesting. I've usually seen host.xz:foo like syntax in HTTP URLs. For instance,

    http://host.xz:4000/bar.baz.git

`git_url_basename` returns `bar.baz` for the above.

I wonder what real-world URL has a syntax like 'host.xz:foo/.git' for which
'foo' would be an appropriate basename to return. Does a real-world URL of
this form exist? Or is this just cooked up to demonstrate the basename that
would be returned for a hypothetical URL like this?
Junio already answered all of your questions, I'll just add that I
lifted that example from the git-clone documentation [1] that uses the
exact same basename extraction function.

[1] https://git-scm.com/docs/git-clone#Documentation/git-clone.txt-ltdirectorygt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help