X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=unpack-trees.c;h=6847c2d966c5e1d0299b21682d6fef2637329071;hb=00f39fc9955c22b6a8a2702b88509647e65291ce;hp=86e28650b887b4fcc1b05cc4d3102367df18a9ac;hpb=2545c089e329d340a9bdec9f725fa737063dd7f6;p=git.git diff --git a/unpack-trees.c b/unpack-trees.c index 86e28650b..6847c2d96 100644 --- a/unpack-trees.c +++ b/unpack-trees.c @@ -7,6 +7,7 @@ #include "unpack-trees.h" #include "progress.h" #include "refs.h" +#include "attr.h" /* * Error messages expected by scripts out of plumbing commands such as @@ -86,6 +87,7 @@ static int check_updates(struct unpack_trees_options *o) cnt = 0; } + git_attr_set_direction(GIT_ATTR_CHECKOUT, &o->result); for (i = 0; i < index->cache_nr; i++) { struct cache_entry *ce = index->cache[i]; @@ -110,6 +112,7 @@ static int check_updates(struct unpack_trees_options *o) } } stop_progress(&progress); + git_attr_set_direction(GIT_ATTR_CHECKIN, NULL); return errs != 0; }