]> git.ipfire.org Git - thirdparty/git.git/commit
clone: use a more appropriate variable name for the default refspec
authorSZEDER Gábor <szeder.dev@gmail.com>
Wed, 14 Nov 2018 10:46:18 +0000 (11:46 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 16 Nov 2018 04:15:14 +0000 (13:15 +0900)
commit3e42cb3b67bef525d4bd8416d44ac1f1a1f7a495
tree74c95d587f11d1c793dfec97ac7e983412cc34b9
parentcae598d9980661a978e2df4fb338518f7bf09572
clone: use a more appropriate variable name for the default refspec

cmd_clone() declares two strbufs 'key' and 'value' on the same line,
suggesting that they are used to contruct a config variable's name and
value.  However, this is not the case: 'key' is used to construct the
names of multiple config variables, while 'value' is never used as a
value for any of those config variables, or for any other config
variable for that matter, but only to contruct the default fetch
refspec.

Let's rename 'value' to 'default_refspec' to make the intent clearer.

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/clone.c