Hash :
ee1f0b1a
Author :
Date :
2011-12-16T10:56:43
Add APIs for git attributes This adds APIs for querying git attributes. In addition to the new API in include/git2/attr.h, most of the action is in src/attr_file.[hc] which contains utilities for dealing with a single attributes file, and src/attr.[hc] which contains the implementation of the APIs that merge all applicable attributes files.
/*
* Copyright (C) 2009-2011 the libgit2 contributors
*
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#ifndef INCLUDE_attr_h__
#define INCLUDE_attr_h__
#include "hashtable.h"
#include "attr_file.h"
/* EXPORT */
typedef struct {
git_hashtable *files; /* hash path to git_attr_file */
} git_attr_cache;
extern void git_repository__attr_cache_free(git_attr_cache *attrs);
#endif