~crg/config

6cc1560a0719120469a3301ac3517b13704c3681 — Charles Gould 1 year, 6 months ago d61aa93
fish: validate clone inputs
1 files changed, 5 insertions(+), 0 deletions(-)

M fish/functions/clone.fish
M fish/functions/clone.fish => fish/functions/clone.fish +5 -0
@@ 1,4 1,9 @@
function clone --argument-names giturl
    if test (count $argv) -gt 1
        echo "Expected a Git URL but got "(count $argv)" arguments: '$argv'"
        return 1
    end

    # These regular expressions are far from comprehensive, but they work for me.
    #
    # Examples: