Thread (1 message) 1 message, 1 author, 2016-06-15
DORMANTno replies

[PATCH 5/9] Clear CE_NO_CHECKOUT on checked out entries.

From: Nguyễn Thái Ngọc Duy <hidden>
Date: 2016-06-15 22:45:10
Subsystem: the rest · Maintainer: Linus Torvalds

With this you can just do "git checkout some-files" to
widen your checkout. On caveat though: caller must save
the index.

Signed-off-by: Nguyễn Thái Ngọc Duy <redacted>
---
 entry.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/entry.c b/entry.c
index 222aaa3..c1c01f4 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.rc3.250.g8dd0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help