libgit2/include/git2
Russell Belfer 1fbeb2f04c Fix attribute lookup in index for bare repos
When using a bare repo with an index, libgit2 attempts to read
files from the index.  It caches those files based on the path
to the file, specifically the path to the directory that contains
the file.

If there is no working directory, we use `git_path_dirname_r` to
get the path to the containing directory.  However, for the
`.gitattributes` file in the root of the repository, this ends up
normalizing the containing path to `"."` instead of the empty
string and the lookup the `.gitattributes` data fails.

This adds a test of attribute lookups on bare repos and also
fixes the problem by simply rewriting `"."` to be `""`.
2014-09-15 21:59:23 -07:00
..
sys Fix attribute lookup in index for bare repos 2014-09-15 21:59:23 -07:00
attr.h Documentation fixes 2014-07-08 10:30:19 +02:00
blame.h Make init_options fns use unsigned ints and macro 2014-05-02 09:21:33 -07:00
blob.h [Blob] Update documentation for is_binary. 2014-05-28 22:57:21 +03:00
branch.h Add GIT_BRANCH_ALL to git_branch_t enum 2014-04-16 18:51:16 +02:00
buffer.h Just put it all in buffer. 2014-07-16 13:34:25 -07:00
checkout.h checkout: fix docs formatting for the options 2014-07-11 12:22:48 +02:00
cherrypick.h git_cherry_pick -> git_cherrypick 2014-07-22 10:40:23 -04:00
clone.h clone: remote git_clone_into{,_local} from the public API 2014-07-02 07:05:00 +02:00
commit.h commit: safer commit creation with reference update 2014-04-30 00:41:37 +02:00
common.h opts: bits are not bytes 2014-03-24 13:21:51 +01:00
config.h config: document the how long the pointers are valid for 2014-04-18 16:07:33 +02:00
cred_helpers.h fixing headers with bad values for objective-c 2013-09-09 13:53:22 -04:00
diff.h Move the UNREADABLE enums to the correct group. 2014-07-22 11:17:42 +10:00
errors.h Introduce GIT_EAUTH 2014-06-26 22:58:38 +02:00
filter.h Use unsigned type for APIs with opt flag mask 2014-05-08 10:46:04 -07:00
graph.h Add git_graph_descendant_of. 2014-01-28 19:39:14 +01:00
ignore.h update copyrights 2013-01-08 17:31:27 -06:00
index.h index: split GIT_IDXENTRY into two flag enums 2014-06-03 16:05:36 +02:00
indexer.h Don't redefine the same callback types, their signatures may change 2014-04-21 11:28:49 +02:00
inttypes.h Unify whitespaces to tabs 2013-05-15 20:26:55 +08:00
merge.h merge: expose multiple merge bases 2014-07-27 17:17:22 +02:00
message.h message: don't assume the comment char 2014-05-18 10:06:49 +02:00
net.h remote: expose the remote's symref mappings 2014-05-21 12:12:32 +02:00
notes.h note: rename the id getter to git_note_id() 2014-01-24 11:18:51 +01:00
object.h Doc fixes 2014-05-02 15:15:43 -07:00
odb_backend.h Take umask into account in filebuf_commit 2013-11-04 22:32:50 -05:00
odb.h Don't redefine the same callback types, their signatures may change 2014-04-21 11:28:49 +02:00
oid.h oid: Export git_oid_tostr_s instead of _allocfmt 2014-08-18 12:41:06 +02:00
oidarray.h merge: expose multiple merge bases 2014-07-27 17:17:22 +02:00
pack.h Don't redefine the same callback types, their signatures may change 2014-04-21 11:28:49 +02:00
patch.h Fix const-correctness of git_patch_get_delta, git_patch_num_hunks, git_patch_num_lines_in_hunk 2014-04-11 21:55:36 +02:00
pathspec.h pathspec: use C guards in header 2014-06-10 03:53:26 +02:00
push.h Make init_options fns use unsigned ints and macro 2014-05-02 09:21:33 -07:00
refdb.h Move git_reference__alloc to include/git2/sys 2013-04-21 12:52:17 -07:00
reflog.h Fixed miscellaneous documentation errors. 2014-05-23 15:57:20 +08:00
refs.h Fixed miscellaneous documentation errors. 2014-05-23 15:57:20 +08:00
refspec.h refspec: move to git_buf for outputting strings 2014-01-27 04:44:06 +01:00
remote.h remote: get rid of git_remote_valid_url() 2014-08-31 21:50:28 +02:00
repository.h Introduce option to use relative paths for repository work directory 2014-09-02 21:07:26 -04:00
reset.h Documentation fixes 2014-07-08 10:30:19 +02:00
revert.h Export git_revert_commit 2014-06-25 09:11:16 -04:00
revparse.h Some documentation improvements 2013-08-28 09:31:32 -07:00
revwalk.h Correcting format of comments in header file 2014-03-24 11:20:51 -07:00
signature.h Fixed miscellaneous documentation errors. 2014-05-23 15:57:20 +08:00
stash.h Update docs for new callback return value behavior 2013-12-11 10:57:50 -08:00
status.h Whitespace wibbles. 2014-06-04 15:41:48 -07:00
stdint.h msvc: Properly handle inttypes.h/stdint.h 2011-10-05 16:21:16 -04:00
strarray.h Unify whitespaces to tabs 2013-05-15 20:26:55 +08:00
submodule.h Introduce option to use relative paths for repository work directory 2014-09-02 21:07:26 -04:00
tag.h tag: Introduce git_tag_annotation_create() 2013-05-21 19:32:59 +02:00
threads.h update copyrights 2013-01-08 17:31:27 -06:00
trace.h Remove trace / add git_diff_perfdata struct + api 2014-05-02 09:21:33 -07:00
transport.h Merge remote-tracking branch 'upstream/master' into cmn/ssh-retry 2014-08-27 15:09:07 +02:00
tree.h treebuilder: don't keep removed entries around 2014-06-10 15:14:13 +02:00
types.h Custom transport: minor cleanups 2014-08-14 08:52:20 -05:00
version.h Bump version to 0.21.0 2014-06-08 20:01:02 +02:00