diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-10-27 23:09:49 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-10-27 23:09:50 +0100 |
commit | 40696c67274305d6258539de5a36649cf833f712 (patch) | |
tree | c7f286e661d93790c42b5443cd4b0ab9dd9c6e4e /refspec.h | |
parent | Merge branch 'sk/force-if-includes' (diff) | |
parent | clone: allow configurable default for `-o`/`--origin` (diff) | |
download | git-40696c67274305d6258539de5a36649cf833f712.tar.xz git-40696c67274305d6258539de5a36649cf833f712.zip |
Merge branch 'sb/clone-origin'
"git clone" learned clone.defaultremotename configuration variable
to customize what nickname to use to call the remote the repository
was cloned from.
* sb/clone-origin:
clone: allow configurable default for `-o`/`--origin`
clone: read new remote name from remote_name instead of option_origin
clone: validate --origin option before use
refs: consolidate remote name validation
remote: add tests for add and rename with invalid names
clone: use more conventional config/option layering
clone: add tests for --template and some disallowed option pairs
Diffstat (limited to 'refspec.h')
-rw-r--r-- | refspec.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -64,6 +64,7 @@ void refspec_appendn(struct refspec *rs, const char **refspecs, int nr); void refspec_clear(struct refspec *rs); int valid_fetch_refspec(const char *refspec); +int valid_remote_name(const char *name); struct strvec; /* |