From: Nguyễn Thái Ngọc Duy Date: Sat, 20 Sep 2008 10:01:47 GMT Subject: [PATCH 08/14] checkout_entry(): CE_NO_CHECKOUT on checked out entries. Message-ID: <1221904913-25887-9-git-send-email-pclouds@gmail.com> In-Reply-To: <1221904913-25887-8-git-send-email-pclouds@gmail.com> With this you can just do "git checkout some-files" to widen your checkout. One caveat though: caller must save the index. For all of its callers (unpack_trees(), checkout-index, checkout and apply), only "git apply" does not write index back. Signed-off-by: Nguyễn Thái Ngọc Duy --- entry.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/entry.c b/entry.c index aa2ee46..305f8d3 100644 --- a/entry.c +++ b/entry.c @@ -230,5 +230,6 @@ int checkout_entry(struct cache_entry *ce, const struct checkout *state, char *t } else if (state->not_new) return 0; create_directories(path, state); + ce_mark_checkout(ce); return write_entry(ce, path, state, 0); } -- 1.6.0.96.g2fad1.dirty