checkout: factor out mark_cache_entry_for_checkout function
commitb7033e73b7b671670160726f62ac16d88161e3d0
authorThomas Gummerer <t.gummerer@gmail.com>
Thu, 20 Dec 2018 13:48:18 +0000 (20 13:48 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Jan 2019 23:28:05 +0000 (2 15:28 -0800)
tree86e83331a96ed44f7255860de0a54ac8eed8a7ae
parent5160fa05623dc2e9e8348d48b91f1f0bf44d369e
checkout: factor out mark_cache_entry_for_checkout function

Factor out the code that marks a cache entry as matched for checkout
into a separate function.  We are going to introduce a new mode in
'git checkout' in a subsequent commit, that is going to have a
slightly different logic.  This would make this code unnecessarily
complex.

Moving that complexity into separate functions will make the code in
the subsequent step easier to follow.

Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/checkout.c