summaryrefslogtreecommitdiff
path: root/builtin-checkout.c
diff options
context:
space:
mode:
authorDenis Cheng <crquan@gmail.com>2008-03-02 10:05:05 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-03-02 16:11:44 (GMT)
commita3647bee1a91d930c4c3e17e36232b5c4a51533d (patch)
tree0c1cfca848ce284fabf2004e293ccca7e34cad4b /builtin-checkout.c
parente371a4c648e72673fcfdf0b45192857dd149e2f5 (diff)
downloadgit-a3647bee1a91d930c4c3e17e36232b5c4a51533d.zip
git-a3647bee1a91d930c4c3e17e36232b5c4a51533d.tar.gz
git-a3647bee1a91d930c4c3e17e36232b5c4a51533d.tar.bz2
cleanup: remove unused git_checkout_config
Directly call git_default_config instead. Signed-off-by: Denis Cheng <crquan@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-checkout.c')
-rw-r--r--builtin-checkout.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/builtin-checkout.c b/builtin-checkout.c
index b0cd788..6b08016 100644
--- a/builtin-checkout.c
+++ b/builtin-checkout.c
@@ -484,11 +484,6 @@ static int switch_branches(struct checkout_opts *opts, struct branch_info *new)
return post_checkout_hook(old.commit, new->commit, 1);
}
-static int git_checkout_config(const char *var, const char *value)
-{
- return git_default_config(var, value);
-}
-
int cmd_checkout(int argc, const char **argv, const char *prefix)
{
struct checkout_opts opts;
@@ -510,7 +505,7 @@ int cmd_checkout(int argc, const char **argv, const char *prefix)
memset(&opts, 0, sizeof(opts));
memset(&new, 0, sizeof(new));
- git_config(git_checkout_config);
+ git_config(git_default_config);
opts.track = git_branch_track;