aboutsummaryrefslogtreecommitdiffstats
path: root/attr.c
AgeCommit message (Expand)AuthorFilesLines
2023-12-28attr: add builtin objectmode values supportJoanna Wang1-3/+92
2023-10-30Merge branch 'jc/attr-tree-config'Junio C Hamano1-2/+19
2023-10-13attr: add attr.tree for setting the treeish to read attributes fromJohn Cai1-0/+7
2023-10-13attr: read attributes from HEAD when bare repoJohn Cai1-1/+11
2023-09-29parse: separate out parsing functions from config.hCalvin Wan1-1/+1
2023-08-29Merge branch 'sl/sparse-check-attr'Junio C Hamano1-18/+39
2023-08-11attr.c: read attributes in a sparse directoryShuqi Liang1-18/+39
2023-07-17Merge branch 'cw/compat-util-header-cleanup'Junio C Hamano1-1/+0
2023-07-05git-compat-util: move alloc macros to git-compat-util.hCalvin Wan1-1/+0
2023-07-04Merge branch 'bc/more-git-var'Junio C Hamano1-7/+7
2023-06-27attr: expose and rename accessor functionsbrian m. carlson1-7/+7
2023-06-21object-store-ll.h: split this header out of object-store.hElijah Newren1-1/+1
2023-06-21repository: remove unnecessary include of path.hElijah Newren1-0/+1
2023-06-21cache.h: remove this no-longer-used headerElijah Newren1-1/+1
2023-06-21read-cache*.h: move declarations for read-cache.c functions from cache.hElijah Newren1-0/+1
2023-05-17Merge branch 'jc/attr-source-tree'Junio C Hamano1-2/+35
2023-05-06attr: teach "--attr-source=<tree>" global option to "git"John Cai1-2/+35
2023-04-24diff.h: reduce unnecessary includesElijah Newren1-0/+1
2023-03-21setup.h: move declarations for setup.c functions from cache.hElijah Newren1-0/+1
2023-03-21environment.h: move declarations for environment.c functions from cache.hElijah Newren1-0/+1
2023-03-21treewide: be explicit about dependence on gettext.hElijah Newren1-0/+1
2023-02-23alloc.h: move ALLOC_GROW() functions from cache.hElijah Newren1-0/+1
2023-01-23Merge branch 'kn/attr-from-tree'Junio C Hamano1-27/+70
2023-01-21Merge branch 'rs/dup-array'Junio C Hamano1-2/+1
2023-01-17attr: adjust a mismatched data typeJohannes Schindelin1-1/+1
2023-01-14attr: add flag `--source` to work with tree-ishKarthik Nayak1-27/+70
2023-01-09use DUP_ARRAYRené Scharfe1-2/+1
2022-12-13Sync with Git 2.37.5Junio C Hamano1-35/+56
2022-12-13Merge branch 'maint-2.35' into maint-2.36Junio C Hamano1-35/+56
2022-12-13Merge branch 'maint-2.33' into maint-2.34Junio C Hamano1-35/+56
2022-12-13Sync with Git 2.32.5Junio C Hamano1-35/+56
2022-12-13Sync with Git 2.31.6Junio C Hamano1-35/+56
2022-12-13Sync with Git 2.30.7Junio C Hamano1-35/+60
2022-12-05attr: ignore overly large gitattributes filesPatrick Steinhardt1-2/+22
2022-12-05attr: ignore attribute lines exceeding 2048 bytesPatrick Steinhardt1-0/+5
2022-12-05attr: fix silently splitting up lines longer than 2048 bytesPatrick Steinhardt1-6/+7
2022-12-05attr: harden allocation against integer overflowsPatrick Steinhardt1-4/+3
2022-12-05attr: fix integer overflow with more than INT_MAX macrosPatrick Steinhardt1-5/+5
2022-12-05attr: fix out-of-bounds read with unreasonable amount of patternsPatrick Steinhardt1-9/+9
2022-12-05attr: fix out-of-bounds write when parsing huge number of attributesPatrick Steinhardt1-8/+8
2022-12-05attr: fix integer overflow when parsing huge attribute namesPatrick Steinhardt1-1/+1
2022-12-05attr: fix out-of-bounds read with huge attribute namesPatrick Steinhardt1-1/+1
2022-12-05attr: fix overflow when upserting attribute with overly long namePatrick Steinhardt1-1/+1
2022-10-06attr: drop DEBUG_ATTR codeJeff King1-38/+3
2022-09-14Merge branch 'ab/unused-annotation'Junio C Hamano1-2/+2
2022-09-14Merge branch 'jk/unused-annotation'Junio C Hamano1-2/+2
2022-09-01git-compat-util.h: use "UNUSED", not "UNUSED(var)"Ævar Arnfjörð Bjarmason1-2/+2
2022-08-19match_pathname(): drop unused "flags" parameterJeff King1-1/+1
2022-08-19hashmap: mark unused callback parametersJeff King1-2/+2
2022-03-29Merge branch 'ab/refs-various-fixes'Junio C Hamano1-1/+1
2022-03-17misc *.c: use designated initializers for struct assignmentsÆvar Arnfjörð Bjarmason1-1/+1
2022-03-13attr.c: delete duplicate includeElia Pinto1-1/+0
2021-09-07attr: be careful about sparse directoriesDerrick Stolee1-0/+15
2021-06-14*: fix typos which duplicate a wordAndrei Rybak1-1/+1
2021-04-30Merge branch 'ds/sparse-index-protections'Junio C Hamano1-7/+7
2021-04-14*: remove 'const' qualifier for struct index_stateDerrick Stolee1-7/+7
2021-03-22Merge branch 'jk/open-dotgitx-with-nofollow'Junio C Hamano1-22/+38
2021-03-13use CALLOC_ARRAYRené Scharfe1-6/+6
2021-02-16attr: do not respect symlinks for in-tree .gitattributesJeff King1-4/+15
2021-02-16attr: convert "macro_ok" into a flags fieldJeff King1-19/+24
2020-11-11Use new HASHMAP_INIT macro to simplify hashmap initializationElijah Newren1-18/+8
2019-11-18attr: move doc to attr.hHeba Waly1-2/+1
2019-10-15Merge branch 'ew/hashmap'Junio C Hamano1-11/+13
2019-10-07hashmap_entry: remove first member requirement from docsEric Wong1-1/+1
2019-10-07hashmap: remove type arg from hashmap_{get,put,remove}_entryEric Wong1-1/+1
2019-10-07OFFSETOF_VAR macro to simplify hashmap iteratorsEric Wong1-1/+0
2019-10-07hashmap: use *_entry APIs for iterationEric Wong1-2/+3
2019-10-07hashmap_cmp_fn takes hashmap_entry paramsEric Wong1-4/+6
2019-10-07hashmap_get{,_from_hash} return "struct hashmap_entry *"Eric Wong1-1/+1
2019-10-07hashmap_get takes "const struct hashmap_entry *"Eric Wong1-1/+1
2019-10-07hashmap_add takes "struct hashmap_entry *"Eric Wong1-1/+1
2019-10-07hashmap_entry_init takes "struct hashmap_entry *"Eric Wong1-2/+2
2019-09-05treewide: rename 'exclude' methods to 'pattern'Derrick Stolee1-1/+1
2019-09-05treewide: rename 'EXCL_FLAG_' to 'PATTERN_FLAG_'Derrick Stolee1-4/+4
2019-03-11Merge branch 'rd/attr.c-comment-typofix'Junio C Hamano1-4/+4
2019-03-07attr.c: ".gitattribute" -> ".gitattributes" (comments)Robert P. J. Day1-4/+4
2019-02-06Merge branch 'nd/the-index-final'Junio C Hamano1-1/+0
2019-02-05Merge branch 'jk/attr-macro-fix'Junio C Hamano1-15/+1
2019-01-24cache.h: flip NO_THE_INDEX_COMPATIBILITY_MACROS switchNguyễn Thái Ngọc Duy1-1/+0
2019-01-22attr: do not mark queried macros as unsetJeff King1-15/+1
2019-01-04Merge branch 'nd/i18n'Junio C Hamano1-2/+2
2018-11-12attr.c: mark more string for translationNguyễn Thái Ngọc Duy1-2/+2
2018-11-05attr.c: remove #ifdef NO_PTHREADSNguyễn Thái Ngọc Duy1-14/+0
2018-09-12Make git_check_attr() a void functionTorsten Bögershausen1-5/+3
2018-08-13attr: remove index from git_attr_set_direction()Nguyễn Thái Ngọc Duy1-12/+3
2018-08-13attr: remove an implicit dependency on the_indexNguyễn Thái Ngọc Duy1-19/+38
2018-05-06Replace all die("BUG: ...") calls by BUG() onesJohannes Schindelin1-5/+5
2018-04-11exec_cmd: rename to use dash in file nameStefan Beller1-1/+1
2017-09-07hashmap: add API to disable item counting when threadedJeff Hostetler1-6/+9
2017-07-05attr.c: drop hashmap_cmp_fn castStefan Beller1-5/+7
2017-06-30hashmap.h: compare function has access to a data fieldStefan Beller1-3/+4
2017-06-24Merge branch 'ab/free-and-null'Junio C Hamano1-4/+2
2017-06-24Merge branch 'bw/config-h'Junio C Hamano1-0/+1
2017-06-16coccinelle: make use of the "type" FREE_AND_NULL() ruleÆvar Arnfjörð Bjarmason1-4/+2
2017-06-15config: don't include config.h by defaultBrandon Williams1-0/+1
2017-05-26wrapper.c: add and use fopen_or_warn()Nguyễn Thái Ngọc Duy1-5/+2
2017-03-13pathspec: allow querying for attributesBrandon Williams1-0/+17
2017-02-01attr: reformat git_attr_set_direction() functionBrandon Williams1-29/+20
2017-02-01attr: push the bare repo check into read_attr()Brandon Williams1-60/+54
2017-02-01attr: store attribute stack in attr_check structureBrandon Williams1-88/+196
2017-02-01attr: tighten const correctness with git_attr and match_attrBrandon Williams1-6/+6
2017-02-01attr: remove maybe-real, maybe-macro from git_attrBrandon Williams1-38/+37
2017-02-01attr: eliminate global check_all_attr arrayBrandon Williams1-39/+82
2017-02-01attr: use hashmap for attribute dictionaryBrandon Williams1-45/+128
2017-02-01attr: change validity check for attribute names to use positive logicJunio C Hamano1-14/+20
2017-02-01attr: pass struct attr_check to collect_some_attrsBrandon Williams1-20/+13
2017-02-01attr: retire git_check_attrs() APIJunio C Hamano1-1/+2
2017-02-01attr: convert git_all_attrs() to use "struct attr_check"Junio C Hamano1-20/+10
2017-02-01attr: (re)introduce git_check_attr() and struct attr_checkJunio C Hamano1-0/+74
2017-02-01attr: rename function and struct related to checking attributesJunio C Hamano1-6/+6
2017-02-01attr.c: outline the future plans by heavily commentingJunio C Hamano1-1/+39
2017-02-01attr.c: add push_stack() helperJunio C Hamano1-38/+33
2017-02-01attr: support quoting pathname patterns in C styleNguyễn Thái Ngọc Duy1-2/+13
2017-02-01attr.c: plug small leak in parse_attr_line()Junio C Hamano1-4/+8
2017-02-01attr.c: tighten constness around "git_attr" structureJunio C Hamano1-1/+1
2017-02-01attr.c: simplify macroexpand_one()Junio C Hamano1-7/+4
2017-02-01attr.c: mark where #if DEBUG ends more clearlyJunio C Hamano1-1/+1
2017-02-01attr.c: complete a sentence in a commentJunio C Hamano1-1/+1
2017-02-01attr.c: explain the lack of attr-name syntax check in parse_attr()Junio C Hamano1-0/+6
2017-02-01attr.c: update a stale comment on "struct match_attr"Junio C Hamano1-3/+2
2017-02-01attr.c: use strchrnul() to scan for one lineJunio C Hamano1-2/+2
2016-10-26read info/{attributes,exclude} only when in repositoryJeff King1-1/+5
2016-04-06Merge branch 'ss/exc-flag-is-a-collection-of-bits'Junio C Hamano1-1/+1
2016-03-01dir: store EXC_FLAG_* values in unsigned integersSaurav Sachidanand1-1/+1
2016-02-22convert trivial cases to FLEX_ARRAY macrosJeff King1-3/+1
2016-02-22convert trivial cases to ALLOC_ARRAYJeff King1-1/+1
2015-08-10memoize common git-path "constant" filesJeff King1-1/+3
2015-06-05Merge branch 'pt/xdg-config-path' into maintJunio C Hamano1-5/+2
2015-05-13Merge branch 'cn/bom-in-gitignore' into maintJunio C Hamano1-2/+7
2015-05-11Merge branch 'pt/xdg-config-path'Junio C Hamano1-5/+2
2015-05-06attr.c: replace home_config_paths() with xdg_config_home()Paul Tan1-5/+2
2015-05-05Merge branch 'cn/bom-in-gitignore'Junio C Hamano1-2/+7
2015-04-16attr: skip UTF8 BOM at the beginning of the input fileJunio C Hamano1-2/+7
2014-12-29attr: avoid heavy work when we know the specified attr is not definedNguyễn Thái Ngọc Duy1-5/+28
2014-12-29attr: do not attempt to expand when we know it's not a macroNguyễn Thái Ngọc Duy1-3/+7
2014-12-29attr.c: rename arg name attr_nr to avoid shadowing the global oneNguyễn Thái Ngọc Duy1-3/+3
2014-09-18use REALLOC_ARRAY for changing the allocation size of arraysRené Scharfe1-2/+1
2014-03-03attr.c: use ALLOC_GROW() in handle_attr_line()Dmitry S. Dolzhenko1-6/+1
2013-12-05replace {pre,suf}fixcmp() with {starts,ends}_with()Christian Couder1-1/+1
2013-04-21Merge branch 'lf/read-blob-data-from-index'Junio C Hamano1-34/+1
2013-04-17read_blob_data_from_index(): optionally return the size of blob dataLukas Fleischer1-1/+1
2013-04-17attr.c: extract read_index_data() as read_blob_data_from_index()Lukas Fleischer1-34/+1
2013-04-07Merge branch 'jc/directory-attrs-regression-fix' into maint-1.8.1Junio C Hamano1-12/+13
2013-04-03Merge branch 'jc/directory-attrs-regression-fix'Junio C Hamano1-12/+13
2013-03-28attr.c::path_matches(): special case paths that end with a slashJunio C Hamano1-4/+4
2013-03-26attr.c::path_matches(): the basename is part of the pathnameJunio C Hamano1-9/+10
2013-03-01Sync with 1.8.1.5Junio C Hamano1-3/+5
2013-03-01Make !pattern in .gitattributes non-fatalThomas Rast1-3/+5
2013-01-29Merge branch 'nd/fix-directory-attrs-off-by-one' into maintJunio C Hamano1-20/+18
2013-01-28Merge branch 'nd/attr-debug-fix' into maintJunio C Hamano1-1/+1
2013-01-22Merge branch 'nd/fix-directory-attrs-off-by-one'Junio C Hamano1-20/+18
2013-01-18Merge branch 'nd/attr-debug-fix'Junio C Hamano1-1/+1
2013-01-16attr: avoid calling find_basename() twice per pathDuy Nguyen1-27/+18
2013-01-15attr: make it build with DEBUG_ATTR againNguyễn Thái Ngọc Duy1-1/+1
2013-01-15attr: fix off-by-one directory component length calculationNguyễn Thái Ngọc Duy1-0/+7
2013-01-10Merge branch 'as/dir-c-cleanup'Junio C Hamano1-1/+1
2012-12-28dir.c: rename excluded() to is_excluded()Adam Spiers1-1/+1
2012-12-17Add directory pattern matching to attributesJean-Noël AVILA1-8/+17
2012-11-09Merge branch 'nd/attr-match-optim-more'Jeff King1-21/+31
2012-10-25Merge branch 'nd/attr-match-optim'Jeff King1-8/+13
2012-10-15attr: more matching optimizations from .gitignoreNguyễn Thái Ngọc Duy1-21/+31
2012-10-05attr: avoid searching for basename on every matchNguyễn Thái Ngọc Duy1-6/+9
2012-10-05attr: avoid strlen() on every matchNguyễn Thái Ngọc Duy1-2/+4
2012-09-17Merge branch 'jk/config-warn-on-inaccessible-paths'Junio C Hamano1-1/+1
2012-09-14Merge branch 'jc/ll-merge-binary-ours'Junio C Hamano1-1/+1
2012-09-13attr: failure to open a .gitattributes file is OK with ENOTDIRJunio C Hamano1-1/+1
2012-09-08attr: "binary" attribute should choose built-in "binary" merge driverJunio C Hamano1-1/+1
2012-08-21warn_on_inaccessible(): a helper to warn on inaccessible pathsJunio C Hamano1-1/+1
2012-08-21attr: warn on inaccessible attribute filesJeff King1-1/+4
2012-07-24attr: make sure we have an xdg path before using itJeff King1-5/+7
2012-06-25Let core.attributesfile default to $XDG_CONFIG_HOME/git/attributesHuynh Khoi Nguyen Nguyen1-7/+10
2012-01-11Merge branch 'maint-1.7.6' into maint-1.7.7Junio C Hamano1-0/+1
2012-01-11attr: fix leak in free_attr_elemJeff King1-0/+1
2012-01-10Merge the attributes fix in from maint-1.6.6 branchJunio C Hamano1-32/+43
2012-01-10attr.c: clarify the logic to pop attr_stackJunio C Hamano1-1/+10
2012-01-10attr.c: make bootstrap_attr_stack() leave earlyJunio C Hamano1-30/+31
2012-01-10attr: drop misguided defensive codingJeff King1-1/+1
2012-01-10attr: don't confuse prefixes with leading directoriesJeff King1-1/+2
2011-10-11attr.c: respect core.ignorecase when matching attribute patternsBrandon Casey1-2/+3
2011-10-06attr: read core.attributesfile from git_default_core_configJunio C Hamano1-13/+2
2011-10-06cleanup: use internal memory allocation wrapper functions everywhereBrandon Casey1-1/+1
2011-10-06attr.c: avoid inappropriate access to strbuf "buf" memberBrandon Casey1-13/+11
2011-08-28Merge branch 'mh/attr'Junio C Hamano1-50/+63
2011-08-14Unroll the loop over passesMichael Haggerty1-25/+26
2011-08-14Change while loop into for loopMichael Haggerty1-4/+1
2011-08-14Determine the start of the states outside of the pass loopMichael Haggerty1-3/+5
2011-08-14Change parse_attr() to take a pointer to struct attr_stateMichael Haggerty1-6/+11
2011-08-14Increment num_attr in parse_attr_line(), not parse_attr()Michael Haggerty1-4/+4
2011-08-14Document struct match_attrMichael Haggerty1-0/+14
2011-08-14Add a file commentMichael Haggerty1-16/+10
2011-08-04Rename git_checkattr() to git_check_attr()Michael Haggerty1-1/+1
2011-08-04Allow querying all attributes on a fileMichael Haggerty1-0/+28
2011-08-04Remove redundant checkMichael Haggerty1-2/+1
2011-08-04Remove redundant call to bootstrap_attr_stack()Michael Haggerty1-1/+0
2011-08-04Extract a function collect_all_attrs()Michael Haggerty1-3/+14
2011-08-04Teach prepare_attr_stack() to figure out dirlen itselfMichael Haggerty1-10/+11
2011-08-04Provide access to the name attribute of git_attrMichael Haggerty1-0/+5
2011-08-04Disallow the empty string as an attribute nameMichael Haggerty1-1/+1
2011-08-04Remove anachronism from commentMichael Haggerty1-4/+2
2011-04-22sparse: Fix some "symbol not declared" warningsRamsay Jones1-2/+2