path: root/unpack-trees.h
diff options
authorLinus Torvalds <>2008-03-06 20:26:14 (GMT)
committerJunio C Hamano <>2008-03-09 08:43:48 (GMT)
commitbc052d7f435f8f729127cc4790484865c1a974b9 (patch)
tree5b685a66e43a9d1ae9743c2b939b09b1eb9805af /unpack-trees.h
parentd1f128b0509dce8b492c233b36131f096fd71274 (diff)
Make 'unpack_trees()' take the index to work on as an argument
This is just a very mechanical conversion, and makes everybody set it to '&the_index' before calling, but at least it makes it more explicit where we work with the index. The next stage would be to split that index usage up into a 'source' and a 'destination' index, so that we can unpack into a different index than we started out from. Signed-off-by: Linus Torvalds <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'unpack-trees.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/unpack-trees.h b/unpack-trees.h
index a2df544..65add16 100644
--- a/unpack-trees.h
+++ b/unpack-trees.h
@@ -28,6 +28,7 @@ struct unpack_trees_options {
struct cache_entry *df_conflict_entry;
void *unpack_data;
+ struct index_state *index;
extern int unpack_trees(unsigned n, struct tree_desc *t,