aboutsummaryrefslogtreecommitdiffstats
path: root/git-remote-testgit.py
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2013-04-05 01:28:10 -0400
committerJunio C Hamano <gitster@pobox.com>2013-04-05 10:31:09 -0700
commit61690bf4a1ad499a673995b92cd8ab51104a431c (patch)
treea3f7ec623aa37cd17dae7052ce6612b283efb5b5 /git-remote-testgit.py
parentdiffcore-pickaxe: fix leaks in "log -S<block>" and "log -G<pattern>" (diff)
downloadgit-61690bf4a1ad499a673995b92cd8ab51104a431c.tar.gz
git-61690bf4a1ad499a673995b92cd8ab51104a431c.zip
diffcore-pickaxe: unify code for log -S/-G
The logic flow of has_changes() used for "log -S" and diff_grep() used for "log -G" are essentially the same. See if we have both sides that could be different in any interesting way, slurp the contents in core, possibly after applying textconv, inspect the contents, clean-up and report the result. The only difference between the two is how "inspect" step works. Unify this codeflow in a helper, pickaxe_match(), which takes a callback function that implements the specific "inspect" step. After removing the common scaffolding code from the existing has_changes() and diff_grep(), they each becomes such a callback function suitable for passing to pickaxe_match(). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-remote-testgit.py')
0 files changed, 0 insertions, 0 deletions
Mateusz Guzik1-3/+3 2024-09-09mm: shmem: extend shmem_unused_huge_shrink() to all sizesHugh Dickins1-25/+20 2024-09-09mm: shmem: fix minor off-by-one in shrinkable calculationHugh Dickins1-1/+1 2024-09-09maple_tree: dump error message based on formatWei Yang1-2/+8 2024-09-09maple_tree: arange64 node is not a leaf nodeWei Yang1-5/+1 2024-09-09Docs/damon/maintainer-profile: document Google calendar for bi-weekly meetupsSeongJae Park1-2/+4 2024-09-09Docs/damon/maintainer-profile: add links in placeSeongJae Park1-40/+44 2024-09-09Docs/damon: use damonitor GitHub organization instead of awslabsSeongJae Park8-23/+23 2024-09-09Revert "mm/damon/lru_sort: adjust local variable to dynamic allocation"SeongJae Park1-11/+4 2024-09-09mm/damon/core: remove per-scheme region priority histogram bufferSeongJae Park1-1/+0 2024-09-09mm/damon/core: replace per-quota regions priority histogram buffer usage with...SeongJae Park1-3/+6 2024-09-09mm/damon/core: introduce per-context region priorities histogram bufferSeongJae Park2-0/+7 2024-09-09mm: remove putback_lru_page()Kefeng Wang2-6/+0 2024-09-09mm: remove isolate_lru_page()Kefeng Wang9-33/+25 2024-09-09mm: migrate_device: use more folio in migrate_device_finalize()Kefeng Wang1-19/+22 2024-09-09mm: migrate_device: use more folio in migrate_device_unmap()Kefeng Wang1-10/+10 2024-09-09mm: migrate_device: use a folio in migrate_device_range()Kefeng Wang1-4/+5 2024-09-09mm: migrate_device: convert to migrate_device_coherent_folio()Kefeng Wang3-17/+17 2024-09-09swap: convert swapon() to use a folioMatthew Wilcox (Oracle)1-9/+7 2024-09-09mm: count the number of partially mapped anonymous THPs per sizeBarry Song3-0/+14 2024-09-09mm: count the number of anonymous THPs per sizeBarry Song6-6/+37 2024-09-09mm: tidy up shmem mTHP controls and statsRyan Roberts1-28/+112 2024-09-09mm: cleanup count_mthp_stat() definitionRyan Roberts3-43/+35 2024-09-03mm: memory_hotplug: unify Huge/LRU/non-LRU movable folio isolationKefeng Wang1-28/+15 2024-09-03mm: migrate: add isolate_folio_to_list()Kefeng Wang3-35/+42 2024-09-03mm: memory_hotplug: check hwpoisoned page firstly in do_migrate_range()Kefeng Wang1-10/+10 2024-09-03mm: memory-failure: add unmap_poisoned_folio()Kefeng Wang2-17/+35 2024-09-03mm: memory_hotplug: remove head variable in do_migrate_range()Kefeng Wang1-8/+14