]> git.proxmox.com Git - libgit2.git/commit - src/vector.h
Add APIs for git attributes
authorRussell Belfer <arrbee@arrbee.com>
Fri, 16 Dec 2011 18:56:43 +0000 (10:56 -0800)
committerRussell Belfer <arrbee@arrbee.com>
Wed, 21 Dec 2011 00:32:58 +0000 (16:32 -0800)
commitee1f0b1aed7798908d9e038b006b66f868613fc3
treec60350029b9e4bb14811ac13caf59ad86424f33e
parentbe00b00dd1468f1c625ca3fadc61f2a16edfb8d5
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.
54 files changed:
include/git2/attr.h [new file with mode: 0644]
src/attr.c [new file with mode: 0644]
src/attr.h [new file with mode: 0644]
src/attr_file.c [new file with mode: 0644]
src/attr_file.h [new file with mode: 0644]
src/hashtable.c
src/hashtable.h
src/refs.c
src/repository.c
src/repository.h
src/util.h
src/vector.c
src/vector.h
tests-clay/attr/file.c [new file with mode: 0644]
tests-clay/attr/lookup.c [new file with mode: 0644]
tests-clay/attr/repo.c [new file with mode: 0644]
tests-clay/clay.h
tests-clay/clay_main.c
tests/resources/attr/.gitattributes [new file with mode: 0644]
tests/resources/attr/.gitted/HEAD [new file with mode: 0644]
tests/resources/attr/.gitted/config [new file with mode: 0644]
tests/resources/attr/.gitted/description [new file with mode: 0644]
tests/resources/attr/.gitted/index [new file with mode: 0644]
tests/resources/attr/.gitted/info/attributes [new file with mode: 0644]
tests/resources/attr/.gitted/info/exclude [new file with mode: 0644]
tests/resources/attr/.gitted/logs/HEAD [new file with mode: 0644]
tests/resources/attr/.gitted/logs/refs/heads/master [new file with mode: 0644]
tests/resources/attr/.gitted/objects/29/29de282ce999e95183aedac6451d3384559c4b [new file with mode: 0644]
tests/resources/attr/.gitted/objects/2c/66e14f77196ea763fb1e41612c1aa2bc2d8ed2 [new file with mode: 0644]
tests/resources/attr/.gitted/objects/2d/e7dfe3588f3c7e9ad59e7d50ba90e3329df9d9 [new file with mode: 0644]
tests/resources/attr/.gitted/objects/3b/74db7ab381105dc0d28f8295a77f6a82989292 [new file with mode: 0644]
tests/resources/attr/.gitted/objects/45/141a79a77842c59a63229403220a4e4be74e3d [new file with mode: 0644]
tests/resources/attr/.gitted/objects/55/6f8c827b8e4a02ad5cab77dca2bcb3e226b0b3 [new file with mode: 0644]
tests/resources/attr/.gitted/objects/6b/ab5c79cd5140d0f800917f550eb2a3dc32b0da [new file with mode: 0644]
tests/resources/attr/.gitted/objects/c0/091889c0c77142b87a1fa5123a6398a61d33e7 [new file with mode: 0644]
tests/resources/attr/.gitted/objects/c4/85abe35abd4aa6fd83b076a78bbea9e2e7e06c [new file with mode: 0644]
tests/resources/attr/.gitted/objects/c7/aadd770d5907a8475c29e9ee21a27b88bf675d [new file with mode: 0644]
tests/resources/attr/.gitted/objects/dc/cada462d3df8ac6de596fb8c896aba9344f941 [new file with mode: 0644]
tests/resources/attr/.gitted/objects/e5/63cf4758f0d646f1b14b76016aa17fa9e549a4 [new file with mode: 0644]
tests/resources/attr/.gitted/objects/f2/c6d717cf4a5a3e6b02684155ab07b766982165 [new file with mode: 0644]
tests/resources/attr/.gitted/objects/fb/5067b1aef3ac1ada4b379dbcb7d17255df7d78 [new file with mode: 0644]
tests/resources/attr/.gitted/refs/heads/master [new file with mode: 0644]
tests/resources/attr/attr0 [new file with mode: 0644]
tests/resources/attr/attr1 [new file with mode: 0644]
tests/resources/attr/attr2 [new file with mode: 0644]
tests/resources/attr/attr3 [new file with mode: 0644]
tests/resources/attr/root_test1 [new file with mode: 0644]
tests/resources/attr/root_test2 [new file with mode: 0644]
tests/resources/attr/root_test3 [new file with mode: 0644]
tests/resources/attr/root_test4.txt [new file with mode: 0644]
tests/resources/attr/subdir/.gitattributes [new file with mode: 0644]
tests/resources/attr/subdir/subdir_test1 [new file with mode: 0644]
tests/resources/attr/subdir/subdir_test2.txt [new file with mode: 0644]
tests/resources/attr/subdir2/subdir2_test1 [new file with mode: 0644]