summaryrefslogtreecommitdiff
path: root/sequencer.h
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2017-07-28 15:25:45 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-07-28 15:51:56 -0700
commit2491f77b90c2e5d47acbe7472c17e7de0af74f63 (patch)
treeba20f55e5f188c839bb952f7b1a8428c370f9374 /sequencer.h
parentt5813: add test for hostname starting with dash (diff)
downloadtgif-2491f77b90c2e5d47acbe7472c17e7de0af74f63.tar.xz
connect: factor out "looks like command line option" check
We reject hostnames that start with a dash because they may be confused for command-line options. Let's factor out that notion into a helper function, as we'll use it in more places. And while it's simple now, it's not clear if some systems might need more complex logic to handle all cases. Signed-off-by: Jeff King <peff@peff.net> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sequencer.h')
0 files changed, 0 insertions, 0 deletions