aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/grep.c
AgeCommit message (Expand)AuthorFilesLines
2024-03-28Merge branch 'eb/hash-transition'Junio C Hamano1-4/+4
2024-02-14Merge branch 'js/check-null-from-read-object-file'Junio C Hamano1-0/+2
2024-02-06Always check the return value of `repo_read_object_file()`Johannes Schindelin1-0/+2
2023-12-26treewide: remove unnecessary includes in source filesElijah Newren1-1/+0
2023-12-26treewide: remove unnecessary includes in source filesElijah Newren1-3/+0
2023-11-07Merge branch 'jc/grep-f-relative-to-cwd'Junio C Hamano1-2/+11
2023-10-12grep: -f <path> is relative to $cwdJunio C Hamano1-2/+11
2023-10-02tree-walk: init_tree_desc take an oid to get the hash algorithmEric W. Biederman1-4/+4
2023-09-18Merge branch 'rs/grep-no-no-or'Junio C Hamano1-1/+1
2023-09-07grep: reject --no-orRené Scharfe1-1/+1
2023-09-05grep: use OPT_INTEGER_F for --max-depthRené Scharfe1-3/+2
2023-08-02Merge branch 'jc/tree-walk-drop-base-offset'Junio C Hamano1-1/+1
2023-07-17Merge branch 'cw/compat-util-header-cleanup'Junio C Hamano1-1/+0
2023-07-07tree-walk: lose base_offset that is never used in tree_entry_interestingJunio C Hamano1-1/+1
2023-07-06Merge branch 'gc/config-context'Junio C Hamano1-4/+8
2023-07-05git-compat-util: move alloc macros to git-compat-util.hCalvin Wan1-1/+0
2023-06-28config: pass kvi to die_bad_number()Glen Choo1-1/+1
2023-06-28config: add ctx arg to config_fn_tGlen Choo1-3/+4
2023-06-28config: inline git_color_default_configGlen Choo1-1/+4
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-2/+1
2023-06-21read-cache*.h: move declarations for read-cache.c functions from cache.hElijah Newren1-0/+1
2023-04-11pager.h: move declarations for pager.c functions from cache.hElijah Newren1-0/+1
2023-04-11object-file.h: move declarations for object-file.c functions from cache.hElijah Newren1-0/+1
2023-04-11object-name.h: move declarations for object-name.c functions from cache.hElijah Newren1-0/+1
2023-04-04Merge branch 'ab/remove-implicit-use-of-the-repository' into en/header-split-...Junio C Hamano1-2/+4
2023-03-28cocci: apply the "object-store.h" part of "the_repository.pending"Ævar Arnfjörð Bjarmason1-2/+4
2023-03-21write-or-die.h: move declarations for write-or-die.c functions from cache.hElijah Newren1-0/+1
2023-03-21setup.h: move declarations for setup.c functions from cache.hElijah Newren1-0/+1
2023-03-21treewide: be explicit about dependence on gettext.hElijah Newren1-0/+1
2023-02-23cache.h: remove dependence on hex.h; make other files include it explicitlyElijah Newren1-0/+1
2023-02-23alloc.h: move ALLOC_GROW() functions from cache.hElijah Newren1-0/+1
2022-11-21builtin/{grep,log}.: don't define "USE_THE_INDEX_COMPATIBILITY_MACROS"Ævar Arnfjörð Bjarmason1-1/+0
2022-09-23builtin/grep.c: integrate with sparse indexShaoxuan Yuan1-3/+45
2022-06-22grep: add --max-count command line optionCarlos López1-0/+9
2022-03-16Merge branch 'ab/object-file-api-updates'Junio C Hamano1-2/+2
2022-02-25object-file API: pass an enum to read_object_with_reference()Ævar Arnfjörð Bjarmason1-2/+2
2022-02-25Merge branch 'ab/grep-patterntype'Junio C Hamano1-13/+14
2022-02-15grep: simplify config parsing and option parsingÆvar Arnfjörð Bjarmason1-6/+4
2022-02-15grep API: call grep_config() after grep_init()Ævar Arnfjörð Bjarmason1-2/+2
2022-02-15grep.c: don't pass along NULL callback valueÆvar Arnfjörð Bjarmason1-2/+2
2022-02-15built-ins: trust the "prefix" from run_builtin()Ævar Arnfjörð Bjarmason1-5/+8
2022-02-04i18n: factorize more 'incompatible options' messagesJean-Noël Avila1-5/+3
2021-10-23grep: fix a "path_list" memory leakÆvar Arnfjörð Bjarmason1-4/+5
2021-10-23grep: use object_array_clear() in cmd_grep()Ævar Arnfjörð Bjarmason1-0/+1
2021-10-23grep: prefer "struct grep_opt" over its "void *" equivalentÆvar Arnfjörð Bjarmason1-2/+2
2021-09-09repository: support unabsorbed in repo_submodule_initJonathan Tan1-4/+1
2021-09-08grep: add repository to OID grep sourcesJonathan Tan1-9/+6
2021-09-08grep: allocate subrepos on heapJonathan Tan1-9/+30
2021-09-08grep: read submodule entry with explicit repoJonathan Tan1-5/+5
2021-09-08grep: typesafe versions of grep_source_initJonathan Tan1-2/+2
2021-09-08grep: use submodule-ODB-as-alternate lazy-additionJonathan Tan1-1/+1
2021-07-01dir.[ch]: replace dir_init() with DIR_INITÆvar Arnfjörð Bjarmason1-2/+1
2021-05-10Merge branch 'bc/hash-transition-interop-part-1'Junio C Hamano1-1/+1
2021-04-30Merge branch 'ds/sparse-index-protections'Junio C Hamano1-0/+2
2021-04-27hash: provide per-algorithm null OIDsbrian m. carlson1-1/+1
2021-04-14grep: ensure full indexDerrick Stolee1-0/+2
2021-03-22Merge branch 'ab/grep-pcre2-allocfix'Junio C Hamano1-1/+0
2021-03-13use CALLOC_ARRAYRené Scharfe1-1/+1
2021-02-25Merge branch 'mt/grep-sparse-checkout'Junio C Hamano1-2/+5
2021-02-17Merge branch 'mt/grep-cached-untracked'Junio C Hamano1-0/+3
2021-02-17grep/pcre2: move back to thread-only PCREv2 structuresÆvar Arnfjörð Bjarmason1-1/+0
2021-02-09grep: honor sparse-checkout on working tree searchesMatheus Tavares1-2/+5
2021-02-09grep: error out if --untracked is used with --cachedMatheus Tavares1-0/+3
2021-01-26grep/log: remove hidden --debug and --grep-debug optionsÆvar Arnfjörð Bjarmason1-5/+0
2020-11-21grep: use designated initializers for `grep_defaults`Martin Ågren1-1/+0
2020-11-21grep: don't set up a "default" repo for grepMartin Ågren1-1/+1
2020-10-12grep: handle deref_tag() returning NULLRené Scharfe1-0/+11
2020-09-10quote_path: give flags parameter to quote_path()Junio C Hamano1-1/+1
2020-09-10quote_path: rename quote_path_relative() to quote_path()Junio C Hamano1-1/+1
2020-08-18dir: fix problematic API to avoid memory leaksElijah Newren1-1/+2
2020-08-10Merge branch 'jk/strvec'Junio C Hamano1-1/+1
2020-07-28grep: avoid using oid_to_hex() with parse_object_or_die()René Scharfe1-1/+1
2020-07-28strvec: convert builtin/ callers away from argv_array nameJeff King1-1/+1
2020-05-05Merge branch 'dl/opt-callback-cleanup'Junio C Hamano1-13/+13
2020-04-29Merge branch 'en/fill-directory-exponential'Junio C Hamano1-2/+0
2020-04-28Use OPT_CALLBACK and OPT_CALLBACK_FDenton Liu1-13/+13
2020-04-20grep: follow conventions for printing paths w/ unusual charsMatheus Tavares1-12/+34
2020-04-01Fix error-prone fill_directory() API; make it only return matchesElijah Newren1-2/+0
2020-02-14Merge branch 'mt/threaded-grep-in-object-store'Junio C Hamano1-47/+46
2020-01-30grep: ignore --recurse-submodules if --no-index is givenPhilippe Blain1-2/+5
2020-01-17grep: use no. of cores as the default no. of threadsMatheus Tavares1-2/+1
2020-01-17grep: move driver pre-load out of critical sectionMatheus Tavares1-4/+4
2020-01-17grep: re-enable threads in non-worktree caseMatheus Tavares1-1/+1
2020-01-17grep: protect packed_git [re-]initializationMatheus Tavares1-2/+6
2020-01-17grep: allow submodule functions to run in parallelMatheus Tavares1-16/+22
2020-01-17submodule-config: add skip_if_read option to repo_read_gitmodules()Matheus Tavares1-1/+1
2020-01-17grep: replace grep_read_mutex by internal obj read lockMatheus Tavares1-30/+16
2020-01-17grep: fix racy calls in grep_objects()Matheus Tavares1-0/+5
2020-01-17grep: fix race conditions at grep_submodule()Matheus Tavares1-4/+3
2019-10-23Merge branch 'cb/pcre2-chartables-leakfix'Junio C Hamano1-0/+1
2019-10-18grep: make PCRE2 aware of custom allocatorCarlo Marcelo Arenas Belón1-0/+1
2019-08-26grep: use return value of strbuf_detach()René Scharfe1-2/+2
2019-08-22Merge branch 'mt/grep-submodules-working-tree'Junio C Hamano1-4/+6
2019-07-30grep: fix worktree case in submodulesMatheus Tavares1-4/+6
2019-06-27sha1-file.c: remove the_repo from read_object_with_reference()Nguyễn Thái Ngọc Duy1-2/+4
2019-02-06Merge branch 'nd/the-index-final'Junio C Hamano1-19/+27
2019-01-29Merge branch 'bc/tree-walk-oid'Junio C Hamano1-4/+4
2019-01-29Merge branch 'sb/submodule-recursive-fetch-gets-the-tip'Junio C Hamano1-7/+10
2019-01-24cache.h: flip NO_THE_INDEX_COMPATIBILITY_MACROS switchNguyễn Thái Ngọc Duy1-0/+1
2019-01-15tree-walk: store object_id in a separate memberbrian m. carlson1-4/+4
2019-01-14Merge branch 'nd/attr-pathspec-in-tree-walk'Junio C Hamano1-1/+2
2019-01-14sha1-name.c: remove implicit dependency on the_indexNguyễn Thái Ngọc Duy1-1/+2
2019-01-14grep: use grep_opt->repo instead of explict repo argumentNguyễn Thái Ngọc Duy1-17/+24
2019-01-04Merge branch 'jk/loose-object-cache'Junio C Hamano1-1/+1
2018-12-05repository: repo_submodule_init to take a submodule structStefan Beller1-7/+10
2018-11-19tree-walk.c: make tree_entry_interesting() take an indexNguyễn Thái Ngọc Duy1-1/+2
2018-11-18Merge branch 'jk/unused-parameter-fixes'Junio C Hamano1-1/+13
2018-11-18Merge branch 'nd/pthreads'Junio C Hamano1-49/+30
2018-11-13Merge branch 'ao/submodule-wo-gitmodules-checked-out'Junio C Hamano1-3/+14
2018-11-13sha1-file: use an object_directory for the main object dirJeff King1-1/+1
2018-11-06assert NOARG/NONEG behavior of parse-options callbacksJeff King1-1/+13
2018-11-05grep: clean up num_threads handlingNguyễn Thái Ngọc Duy1-31/+27
2018-11-05grep: remove #ifdef NO_PTHREADSNguyễn Thái Ngọc Duy1-37/+22
2018-10-31submodule: support reading .gitmodules when it's not in the working treeAntonio Ospite1-3/+14
2018-10-19Merge branch 'rs/grep-no-recursive'Junio C Hamano1-0/+2
2018-10-03grep: add -r/--[no-]recursiveRené Scharfe1-0/+2
2018-09-21userdiff.c: remove implicit dependency on the_indexNguyễn Thái Ngọc Duy1-1/+2
2018-09-21grep.c: remove implicit dependency on the_indexNguyễn Thái Ngọc Duy1-2/+2
2018-08-20Merge branch 'nd/no-the-index'Junio C Hamano1-3/+3
2018-08-15Merge branch 'nd/i18n'Junio C Hamano1-6/+6
2018-08-13grep: use the right index instead of the_indexNguyễn Thái Ngọc Duy1-2/+2
2018-08-13dir.c: remove an implicit dependency on the_index in pathspec codeNguyễn Thái Ngọc Duy1-3/+3
2018-08-02Merge branch 'tb/grep-only-matching'Junio C Hamano1-0/+6
2018-08-02Merge branch 'sb/object-store-lookup'Junio C Hamano1-1/+2
2018-07-23builtin/grep.c: mark strings for translationNguyễn Thái Ngọc Duy1-1/+1
2018-07-23Update messages in preparation for i18nNguyễn Thái Ngọc Duy1-5/+5
2018-07-09grep.c: teach 'git grep --only-matching'Taylor Blau1-0/+6
2018-06-29tag: add repository argument to deref_tagStefan Beller1-1/+2
2018-06-22builtin/grep.c: add '--column' option to 'git-grep(1)'Taylor Blau1-0/+1
2018-06-01Merge branch 'nd/use-opt-int-set-f'Junio C Hamano1-3/+3
2018-05-30Merge branch 'sb/grep-die-on-unreadable-index'Junio C Hamano1-1/+2
2018-05-24Use OPT_SET_INT_F() for cmdline option specificationNguyễn Thái Ngọc Duy1-3/+3
2018-05-16grep: handle corrupt index files earlyStefan Beller1-1/+2
2018-05-08Merge branch 'sb/submodule-move-nested'Junio C Hamano1-8/+6
2018-04-11Merge branch 'sb/object-store'Junio C Hamano1-1/+2
2018-04-10Merge branch 'bc/object-id'Junio C Hamano1-3/+3
2018-03-29submodule-config: allow submodule_free to handle arbitrary repositoriesStefan Beller1-1/+1
2018-03-29grep: remove "repo" arg from non-supporting funcsJonathan Tan1-7/+5
2018-03-23repository: introduce raw object store fieldStefan Beller1-1/+2
2018-03-14Merge branch 'nd/parseopt-completion'Junio C Hamano1-5/+8
2018-03-14sha1_file: convert read_sha1_file to struct object_idbrian m. carlson1-1/+1
2018-03-14sha1_file: convert read_object_with_reference to object_idbrian m. carlson1-2/+2
2018-03-08Merge branch 'rv/grep-cleanup'Junio C Hamano1-13/+20
2018-02-23grep: simplify grep_oid and grep_fileRasmus Villemoes1-4/+2
2018-02-23grep: move grep_source_init outside critical sectionRasmus Villemoes1-9/+18
2018-02-14object: rename function 'typename' to 'type_name'Brandon Williams1-1/+1
2018-02-09completion: use __gitcomp_builtin in _git_grepNguyễn Thái Ngọc Duy1-5/+8
2017-12-19Merge branch 'bw/pathspec-match-submodule-boundary'Junio C Hamano1-0/+1
2017-12-05pathspec: only match across submodule boundaries when requestedBrandon Williams1-0/+1
2017-11-15Merge branch 'bw/grep-recurse-submodules' into maintJunio C Hamano1-0/+2
2017-11-06Merge branch 'bw/grep-recurse-submodules'Junio C Hamano1-0/+2
2017-11-02grep: take the read-lock when adding a submoduleMartin Ågren1-0/+2
2017-10-18Merge branch 'jk/ref-filter-colors-fix'Junio C Hamano1-1/+1
2017-10-17Revert "color: check color.ui in git_default_config()"Jeff King1-1/+1
2017-08-26Merge branch 'bw/submodule-config-cleanup'Junio C Hamano1-4/+0
2017-08-23Merge branch 'jk/ref-filter-colors' into maintJunio C Hamano1-1/+1
2017-08-22Merge branch 'bw/grep-recurse-submodules'Junio C Hamano1-310/+86
2017-08-11Merge branch 'jk/ref-filter-colors'Junio C Hamano1-1/+1
2017-08-11Merge branch 'bc/object-id'Junio C Hamano1-4/+4
2017-08-03submodule: remove gitmodules_configBrandon Williams1-4/+0
2017-08-02Merge branch 'bc/object-id' into bw/submodule-config-cleanupJunio C Hamano1-3/+3
2017-08-02grep: recurse in-process using 'struct repository'Brandon Williams1-310/+86
2017-07-17sha1_name: convert GET_SHA1* flags to GET_OID*brian m. carlson1-1/+1
2017-07-17sha1_name: convert get_sha1* to get_oid*brian m. carlson1-2/+2
2017-07-17submodule: convert submodule config lookup to use object_idbrian m. carlson1-2/+2
2017-07-13Merge branch 'ab/grep-lose-opt-regflags'Junio C Hamano1-2/+0
2017-07-13color: check color.ui in git_default_config()Jeff King1-1/+1
2017-07-12Merge branch 'rs/use-div-round-up'Junio C Hamano1-1/+1
2017-07-10use DIV_ROUND_UPRené Scharfe1-1/+1
2017-07-05Merge branch 'bw/repo-object'Junio C Hamano1-1/+2
2017-06-30grep: remove regflags from the public grep_opt APIÆvar Arnfjörð Bjarmason1-2/+0
2017-06-27Spelling fixesVille Skyttä1-1/+1
2017-06-24Merge branch 'bw/config-h'Junio C Hamano1-0/+1
2017-06-23submodule: convert is_submodule_initialized to work on a repositoryBrandon Williams1-1/+2
2017-06-23Merge branches 'bw/ls-files-sans-the-index' and 'bw/config-h' into bw/repo-ob...Junio C Hamano1-0/+1
2017-06-19Merge branch 'bw/object-id'Junio C Hamano1-11/+11
2017-06-19Merge branch 'ab/pcre-v2'Junio C Hamano1-3/+13
2017-06-15config: don't include config.h by defaultBrandon Williams1-0/+1
2017-06-13Merge branch 'sb/submodule-blanket-recursive'Junio C Hamano1-0/+3
2017-06-02Merge branch 'ab/grep-preparatory-cleanup'Junio C Hamano1-4/+19
2017-06-02Merge branch 'jk/diff-blob'Junio C Hamano1-1/+3
2017-06-02grep: convert to struct object_idBrandon Williams1-11/+11
2017-06-01builtin/grep.c: respect 'submodule.recurse' optionStefan Beller1-0/+3
2017-05-29Merge branch 'bc/object-id'Junio C Hamano1-1/+1
2017-05-26grep: skip pthreads overhead when using one threadÆvar Arnfjörð Bjarmason1-0/+2
2017-05-26grep: don't redundantly compile throwaway patterns under threadingÆvar Arnfjörð Bjarmason1-3/+11
2017-05-26grep: assert that threading is enabled when calling grep_{lock,unlock}Ævar Arnfjörð Bjarmason1-4/+4
2017-05-26grep: given --threads with NO_PTHREADS=YesPlease, warnÆvar Arnfjörð Bjarmason1-0/+13
2017-05-26grep: catch a missing enum in switch statementÆvar Arnfjörð Bjarmason1-0/+2
2017-05-24get_sha1_with_context: dynamically allocate oc->pathJeff King1-1/+3
2017-05-08object: convert parse_object* to take struct object_idbrian m. carlson1-1/+1
2017-05-06dir: convert fill_directory to take an indexBrandon Williams1-1/+1
2017-04-19Merge branch 'ab/grep-plug-pathspec-leak'Junio C Hamano1-0/+1
2017-04-16grep: plug a trivial memory leakÆvar Arnfjörð Bjarmason1-0/+1
2017-03-30Merge branch 'bw/recurse-submodules-relative-fix'Junio C Hamano1-16/+25
2017-03-28Merge branch 'sb/checkout-recurse-submodules'Junio C Hamano1-1/+1
2017-03-28Merge branch 'bw/grep-recurse-submodules'Junio C Hamano1-12/+9
2017-03-18grep: fix builds with with no thread supportBrandon Williams1-12/+9