Skip to content
  • Torsten Bögershausen's avatar
    git fetch-pack: add --diag-url · 5610b7c0
    Torsten Bögershausen authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    The main purpose is to trace the URL parser called by git_connect() in
    connect.c
    
    The main features of the parser can be listed as this:
    
    - parse out host and path for URLs with a scheme (git:// file:// ssh://)
    - parse host names embedded by [] correctly
    - extract the port number, if present
    - separate URLs like "file" (which are local)
      from URLs like "host:repo" which should use ssh
    
    Add the new parameter "--diag-url" to "git fetch-pack", which prints
    the value for protocol, host and path to stderr and exits.
    
    Signed-off-by: default avatarTorsten Bögershausen <tboegi@web.de>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    5610b7c0