]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/checkout.c
checkout: pass "struct checkout_opts *" as const pointer
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Wed, 29 Aug 2012 13:55:22 +0000 (20:55 +0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 29 Aug 2012 18:26:07 +0000 (11:26 -0700)
commita2b4994c826b40b42f395824dcadc082df77959b
tree36ecdab92673a3e74c52fc8114497ea94687848d
parent31e0100e89c3f7c05bd7fdf54e084b2039d398ec
checkout: pass "struct checkout_opts *" as const pointer

This struct contains various switches to system and it feels somewhat
safer to have the compiler reassure us that nowhere else changes it.

One field that is changed, writeout_error, is split out and passed as
another argument.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/checkout.c