summaryrefslogtreecommitdiff
path: root/attr.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-03-26 00:27:33 -0700
committerJunio C Hamano <gitster@pobox.com>2009-03-26 00:27:33 -0700
commit6ba8b079cbe49e2e49bc26a0ca2e47185337142c (patch)
treeaad000ecd7316a43ee2e6e8ffb31e9955e9609e9 /attr.h
parentb71fdc590d660f81e8e2ebfdab989feb60e86dde (diff)
parentb997045e01c2f12ac7dc44c487915f8e50da4d4d (diff)
downloadgit-6ba8b079cbe49e2e49bc26a0ca2e47185337142c.tar.gz
Merge branch 'jc/attributes-checkout'
* jc/attributes-checkout: Add a test for checking whether gitattributes is honored by checkout. Read attributes from the index that is being checked out
Diffstat (limited to 'attr.h')
-rw-r--r--attr.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/attr.h b/attr.h
index f1c2038b09..3a2f4ec1a0 100644
--- a/attr.h
+++ b/attr.h
@@ -31,4 +31,10 @@ struct git_attr_check {
int git_checkattr(const char *path, int, struct git_attr_check *);
+enum git_attr_direction {
+ GIT_ATTR_CHECKIN,
+ GIT_ATTR_CHECKOUT
+};
+void git_attr_set_direction(enum git_attr_direction, struct index_state *);
+
#endif /* ATTR_H */