]> git.proxmox.com Git - libgit2.git/commit - src/libgit2/repository.c
Add support for macros and cache flush API.
authorRussell Belfer <arrbee@arrbee.com>
Thu, 29 Dec 2011 07:28:50 +0000 (23:28 -0800)
committerRussell Belfer <arrbee@arrbee.com>
Thu, 29 Dec 2011 08:01:10 +0000 (00:01 -0800)
commit73b51450a3194ddaa2ac180a1fea25fdf66971bb
tree4a6f4f0cfc90ded7f7734da2b6a9353d9bb0890b
parentee1f0b1aed7798908d9e038b006b66f868613fc3
Add support for macros and cache flush API.

Add support for git attribute macro definitions.  Also, add
support for cache flush API to clear the attribute file content
cache when needed.

Additionally, improved the handling of global and system files,
making common utility functions in fileops and converting config
and attr to both use the common functions.

Adds a bunch more tests and fixed some memory leaks.  Note that
adding macros required me to use refcounted attribute assignment
definitions, which complicated, but probably improved memory usage.
38 files changed:
include/git2/attr.h
src/attr.c
src/attr.h [deleted file]
src/attr_file.c
src/attr_file.h
src/config.c
src/config.h
src/fileops.c
src/fileops.h
src/repository.c
src/repository.h
src/util.h
src/win32/utf-conv.c
src/win32/utf-conv.h
tests-clay/attr/file.c
tests-clay/attr/lookup.c
tests-clay/attr/repo.c
tests-clay/clay.h
tests-clay/clay_main.c
tests/resources/attr/.gitattributes [deleted file]
tests/resources/attr/.gitted/index
tests/resources/attr/.gitted/info/attributes
tests/resources/attr/.gitted/logs/HEAD
tests/resources/attr/.gitted/logs/refs/heads/master
tests/resources/attr/.gitted/objects/3e/42ffc54a663f9401cc25843d6c0e71a33e4249 [new file with mode: 0644]
tests/resources/attr/.gitted/objects/60/5812ab7fe421fdd325a935d35cb06a9234a7d7 [new file with mode: 0644]
tests/resources/attr/.gitted/objects/94/da4faa0a6bfb8ee6ccf7153801a69202b31857 [new file with mode: 0644]
tests/resources/attr/.gitted/objects/99/eae476896f4907224978b88e5ecaa6c5bb67a9 [new file with mode: 0644]
tests/resources/attr/.gitted/objects/9f/b40b6675dde60b5697afceae91b66d908c02d9 [new file with mode: 0644]
tests/resources/attr/.gitted/objects/a5/6bbcecaeac760cc26239384d2d4c614e7e4320 [new file with mode: 0644]
tests/resources/attr/.gitted/objects/d8/00886d9c86731ae5c4a62b0b77c437015e00d2 [new file with mode: 0644]
tests/resources/attr/.gitted/objects/ff/69f8639ce2e6010b3f33a74160aad98b48da2b [new file with mode: 0644]
tests/resources/attr/.gitted/refs/heads/master
tests/resources/attr/binfile [new file with mode: 0644]
tests/resources/attr/gitattributes [new file with mode: 0644]
tests/resources/attr/macro_test [new file with mode: 0644]
tests/resources/attr/subdir/.gitattributes
tests/resources/attr/subdir/abc [new file with mode: 0644]