105 Commits (915c96df3822f968332f6bf3642e5195b52201c9)

Author SHA1 Message Date
Jeff King 96ffc06f72 convert trivial cases to FLEX_ARRAY macros 9 years ago
Jeff King b32fa95fd8 convert trivial cases to ALLOC_ARRAY 9 years ago
Jeff King f932729cc7 memoize common git-path "constant" files 10 years ago
Paul Tan 2527bbce25 attr.c: replace home_config_paths() with xdg_config_home() 10 years ago
Junio C Hamano 27547e5fcc attr: skip UTF8 BOM at the beginning of the input file 10 years ago
Nguyễn Thái Ngọc Duy 06a604e670 attr: avoid heavy work when we know the specified attr is not defined 10 years ago
Nguyễn Thái Ngọc Duy fad32bcd83 attr: do not attempt to expand when we know it's not a macro 10 years ago
Nguyễn Thái Ngọc Duy aa7710e064 attr.c: rename arg name attr_nr to avoid shadowing the global one 10 years ago
René Scharfe 2756ca4347 use REALLOC_ARRAY for changing the allocation size of arrays 11 years ago
Dmitry S. Dolzhenko 3a7fa03db9 attr.c: use ALLOC_GROW() in handle_attr_line() 11 years ago
Christian Couder 5955654823 replace {pre,suf}fixcmp() with {starts,ends}_with() 11 years ago
Lukas Fleischer ff36682505 read_blob_data_from_index(): optionally return the size of blob data 12 years ago
Lukas Fleischer 29fb37b272 attr.c: extract read_index_data() as read_blob_data_from_index() 12 years ago
Junio C Hamano dc09e9ec43 attr.c::path_matches(): special case paths that end with a slash 12 years ago
Junio C Hamano bd2f371d34 attr.c::path_matches(): the basename is part of the pathname 12 years ago
Thomas Rast 8b1bd02415 Make !pattern in .gitattributes non-fatal 12 years ago
Duy Nguyen 9db9eecfe5 attr: avoid calling find_basename() twice per path 12 years ago
Nguyễn Thái Ngọc Duy 712efb1a42 attr: make it build with DEBUG_ATTR again 12 years ago
Nguyễn Thái Ngọc Duy 711536bd4b attr: fix off-by-one directory component length calculation 12 years ago
Adam Spiers 6d24e7a807 dir.c: rename excluded() to is_excluded() 12 years ago
Jean-Noël AVILA 94bc671a1f Add directory pattern matching to attributes 12 years ago
Nguyễn Thái Ngọc Duy 82dce998c2 attr: more matching optimizations from .gitignore 13 years ago
Nguyễn Thái Ngọc Duy 4742d136e2 attr: avoid searching for basename on every match 13 years ago
Nguyễn Thái Ngọc Duy cd6a0b265e attr: avoid strlen() on every match 13 years ago
Junio C Hamano 8e950dab86 attr: failure to open a .gitattributes file is OK with ENOTDIR 13 years ago
Junio C Hamano 155a4b712e attr: "binary" attribute should choose built-in "binary" merge driver 13 years ago
Junio C Hamano 55b38a48e2 warn_on_inaccessible(): a helper to warn on inaccessible paths 13 years ago
Jeff King 11e50b2736 attr: warn on inaccessible attribute files 13 years ago
Jeff King f0c1c15c41 attr: make sure we have an xdg path before using it 13 years ago
Huynh Khoi Nguyen Nguyen 684e40f657 Let core.attributesfile default to $XDG_CONFIG_HOME/git/attributes 13 years ago
Jeff King 37475f97d1 attr: fix leak in free_attr_elem 13 years ago
Junio C Hamano c432ef996e attr.c: clarify the logic to pop attr_stack 13 years ago
Junio C Hamano 909ca7b9ac attr.c: make bootstrap_attr_stack() leave early 13 years ago
Jeff King 77f7f82288 attr: drop misguided defensive coding 13 years ago
Jeff King 1afca44495 attr: don't confuse prefixes with leading directories 13 years ago
Brandon Casey 6eba6210d9 attr.c: respect core.ignorecase when matching attribute patterns 14 years ago
Junio C Hamano 64589a03a8 attr: read core.attributesfile from git_default_core_config 14 years ago
Brandon Casey 040a655116 cleanup: use internal memory allocation wrapper functions everywhere 14 years ago
Brandon Casey 97410b27e9 attr.c: avoid inappropriate access to strbuf "buf" member 14 years ago
Michael Haggerty d68e1c183c Unroll the loop over passes 14 years ago
Michael Haggerty e0a5f9aaae Change while loop into for loop 14 years ago
Michael Haggerty 85c4a0d048 Determine the start of the states outside of the pass loop 14 years ago
Michael Haggerty d175129857 Change parse_attr() to take a pointer to struct attr_state 14 years ago
Michael Haggerty 4c7517c9cc Increment num_attr in parse_attr_line(), not parse_attr() 14 years ago
Michael Haggerty ba845b7550 Document struct match_attr 14 years ago
Michael Haggerty 86ab7f0cca Add a file comment 14 years ago
Michael Haggerty d932f4eb9f Rename git_checkattr() to git_check_attr() 14 years ago
Michael Haggerty ee548df300 Allow querying all attributes on a file 14 years ago
Michael Haggerty 7373eab48e Remove redundant check 14 years ago
Michael Haggerty cd93bffb91 Remove redundant call to bootstrap_attr_stack() 14 years ago