@matheusbsbs / matheus-bagliano / commits / a3647bee1a
Fork 0

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>

Denis Cheng committed Mar 2, 2008 at 18:05 UTC a3647bee1a91d930c4c3e17e36232b5c4a51533d
1 file changed +1 -6
builtin-checkout.c
+1 -6
@@ -484,11 +484,6 @@ static int switch_branches(struct checkout_opts *opts, struct branch_info *new)
484 return post_checkout_hook(old.commit, new->commit, 1);
485 }
486
487 -static int git_checkout_config(const char *var, const char *value)
488 -{
489 - return git_default_config(var, value);
490 -}
491 -
487 int cmd_checkout(int argc, const char **argv, const char *prefix)
488 {
489 struct checkout_opts opts;
@@ -510,7 +505,7 @@ int cmd_checkout(int argc, const char **argv, const char *prefix)
505 memset(&opts, 0, sizeof(opts));
506 memset(&new, 0, sizeof(new));
507
513 - git_config(git_checkout_config);
508 + git_config(git_default_config);
509
510 opts.track = git_branch_track;
511