aboutsummaryrefslogtreecommitdiffstats
path: root/tree-diff.c
AgeCommit message (Expand)AuthorFilesLines
2023-08-31tree-diff: respect max_allowed_tree_depthJeff King1-8/+15
2023-08-02Merge branch 'jc/tree-walk-drop-base-offset'Junio C Hamano1-1/+1
2023-07-07tree-walk: lose base_offset that is never used in tree_entry_interestingJunio C Hamano1-1/+1
2023-06-21diff.h: remove unnecessary include of oidset.hElijah Newren1-0/+1
2023-04-24diff.h: reduce unnecessary includesElijah Newren1-0/+1
2023-04-24treewide: remove cache.h inclusion due to previous changesElijah Newren1-1/+1
2023-04-24tree-diff.c: move S_DIFFTREE_IFXMIN_NEQ define from cache.hElijah Newren1-0/+13
2021-12-07pathspec: use BUG(...) not die("BUG:%s:%d....", <file>, <line>)Ævar Arnfjörð Bjarmason1-2/+1
2021-09-16tree-diff: fix leak when not HAVE_ALLOCA_HCarlo Marcelo Arenas Belón1-1/+3
2021-04-27hash: provide per-algorithm null OIDsbrian m. carlson1-2/+2
2020-09-17bloom/diff: properly short-circuit on max_changesDerrick Stolee1-4/+1
2020-06-08diff.h: drop diff_tree_oid() & friends' return valueSZEDER Gábor1-16/+14
2020-03-30diff: halt tree-diff early after max_changesDerrick Stolee1-0/+6
2019-06-27tree-walk.c: remove the_repo from fill_tree_descriptor()Nguyễn Thái Ngọc Duy1-2/+2
2019-04-08Use 'unsigned short' for mode, like diff_filespec doesElijah Newren1-1/+1
2019-01-29Merge branch 'bc/tree-walk-oid'Junio C Hamano1-3/+3
2019-01-15tree-walk: store object_id in a separate memberbrian m. carlson1-3/+3
2018-11-19tree-walk.c: make tree_entry_interesting() take an indexNguyễn Thái Ngọc Duy1-1/+2
2018-10-19Merge branch 'nd/the-index'Junio C Hamano1-1/+1
2018-09-21tree-diff.c: remove implicit dependency on the_indexNguyễn Thái Ngọc Duy1-1/+1
2018-09-21diff.c: remove implicit dependency on the_indexNguyễn Thái Ngọc Duy1-1/+1
2018-08-29convert "oidcmp() != 0" to "!oideq()"Jeff King1-1/+1
2018-08-17refactor various if (x) FREE_AND_NULL(x) to just FREE_AND_NULL(x)Ævar Arnfjörð Bjarmason1-3/+1
2017-11-01diff: make struct diff_flags members lowercaseBrandon Williams1-8/+8
2017-11-01diff: remove DIFF_OPT_SET macroBrandon Williams1-2/+2
2017-11-01diff: remove DIFF_OPT_TST macroBrandon Williams1-6/+6
2017-08-14tree-walk: convert fill_tree_descriptor() to object_idRené Scharfe1-3/+2
2017-08-11Merge branch 'bw/object-id'Junio C Hamano1-2/+3
2017-07-17tree-diff: don't access hash of NULL object_id pointerRené Scharfe1-2/+3
2017-06-24Merge branch 'ab/free-and-null'Junio C Hamano1-4/+2
2017-06-16coccinelle: make use of the "type" FREE_AND_NULL() ruleÆvar Arnfjörð Bjarmason1-4/+2
2017-06-05tree-diff: convert path_appendnew to object_idBrandon Williams1-3/+3
2017-06-05tree-diff: convert diff_tree_paths to struct object_idBrandon Williams1-31/+32
2017-06-05tree-diff: convert try_to_follow_renames to struct object_idBrandon Williams1-3/+5
2017-06-05diff-tree: convert diff_tree_sha1 to struct object_idBrandon Williams1-5/+7
2017-06-02tree-diff: convert diff_root_tree_sha1 to struct object_idBrandon Williams1-2/+2
2017-06-02diff: convert diff_change to struct object_idBrandon Williams1-1/+1
2017-06-02diff: convert diff_addremove to struct object_idBrandon Williams1-4/+4
2016-06-27Merge branch 'jk/avoid-unbounded-alloca'Junio C Hamano1-6/+16
2016-06-07tree-diff: avoid alloca for large allocationsJeff King1-6/+16
2016-06-02pathspec: rename free_pathspec() to clear_pathspec()Junio C Hamano1-2/+2
2016-04-25tree-walk: convert tree_entry_extract() to use struct object_idbrian m. carlson1-1/+1
2016-04-25struct name_entry: use struct object_id instead of unsigned char sha1[20]brian m. carlson1-3/+3
2016-03-16tree-diff: catch integer overflow in combine_diff_path allocationJeff King1-2/+2
2016-02-19tree-diff: catch integer overflow in combine_diff_path allocationJeff King1-2/+2
2015-03-13diff: convert struct combine_diff_path to object_idbrian m. carlson1-5/+5
2014-04-07tree-diff: rework diff_tree() to generate diffs for multiparent cases as wellKirill Smelkov1-64/+440
2014-03-27tree-diff: reuse base str(buf) memory on sub-tree recursionKirill Smelkov1-19/+19
2014-03-27tree-diff: no need to call "full" diff_tree_sha1 from show_path()Kirill Smelkov1-2/+6
2014-03-27tree-diff: rework diff_tree interface to be sha1 basedKirill Smelkov1-32/+28
2014-03-26tree-diff: diff_tree() should now be staticKirill Smelkov1-2/+2
2014-03-26tree-diff: remove special-case diff-emitting code for empty-tree casesKirill Smelkov1-12/+14
2014-03-20tree-diff: simplify tree_entry_pathcmpKirill Smelkov1-11/+6
2014-03-20tree-diff: show_path prototype is not needed anymoreKirill Smelkov1-3/+0
2014-03-20tree-diff: rename compare_tree_entry -> tree_entry_pathcmpKirill Smelkov1-6/+9
2014-03-20tree-diff: move all action-taking code out of compare_tree_entry()Kirill Smelkov1-16/+12
2014-03-20tree-diff: don't assume compare_tree_entry() returns -1,0,1Kirill Smelkov1-8/+14
2014-03-20tree-diff: consolidate code for emitting diffs and recursion in one placeKirill Smelkov1-30/+82
2014-03-04tree-diff: show_tree() is not neededKirill Smelkov1-32/+3
2014-02-24tree-diff: no need to pass match to skip_uninteresting()Kirill Smelkov1-9/+8
2014-02-24tree-diff: no need to manually verify that there is no mode change for a pathKirill Smelkov1-10/+5
2014-02-05tree-diff: convert diff_root_tree_sha1() to just call diff_tree_sha1 with old...Kirill Smelkov1-14/+1
2014-02-05tree-diff: allow diff_tree_sha1 to accept NULL sha1Kirill Smelkov1-8/+4
2013-10-28pathspec: stop --*-pathspecs impact on internal parse_pathspec() usesNguyễn Thái Ngọc Duy1-1/+3
2013-07-15pathspec: support :(literal) syntax for noglob pathspecNguyễn Thái Ngọc Duy1-1/+1
2013-07-15tree-diff: remove the use of pathspec's raw[] in follow-rename codepathNguyễn Thái Ngọc Duy1-2/+2
2013-07-15remove init_pathspec() in favor of parse_pathspec()Nguyễn Thái Ngọc Duy1-5/+5
2013-07-15remove diff_tree_{setup,release}_pathsNguyễn Thái Ngọc Duy1-14/+4
2013-07-15guard against new pathspec magic in pathspec matching codeNguyễn Thái Ngọc Duy1-0/+19
2013-07-15parse_pathspec: add special flag for max_depth featureNguyễn Thái Ngọc Duy1-1/+0
2012-08-27Merge branch 'jk/maint-null-in-trees'Junio C Hamano1-4/+4
2012-08-03diff_setup_done(): return voidThomas Rast1-2/+1
2012-07-29diff: do not use null sha1 as a sentinel valueJeff King1-4/+4
2011-12-16use custom rename score during --followJeff King1-0/+1
2011-10-27tree_entry_interesting(): give meaningful names to return valuesNguyễn Thái Ngọc Duy1-7/+9
2011-10-27tree-walk.c: do not leak internal structure in tree_entry_len()Nguyễn Thái Ngọc Duy1-3/+3
2011-06-06Merge branch 'jk/diff-not-so-quick'Junio C Hamano1-2/+1
2011-05-31diff: futureproof "stop feeding the backend early" logicJunio C Hamano1-3/+1
2011-05-31diff_tree: disable QUICK optimization with diff filterJeff King1-0/+1
2011-05-06Merge branch 'nd/struct-pathspec'Junio C Hamano1-33/+20
2011-03-25Improve tree_entry_interesting() handling codeNguyễn Thái Ngọc Duy1-33/+20
2011-03-22Remove unused variablesJohannes Schindelin1-2/+1
2011-02-03grep: drop pathspec_matches() in favor of tree_entry_interesting()Nguyễn Thái Ngọc Duy1-2/+2
2011-02-03tree_entry_interesting(): support depth limitNguyễn Thái Ngọc Duy1-0/+4
2011-02-03diff-tree: convert base+baselen to writable strbufNguyễn Thái Ngọc Duy1-68/+52
2011-02-03Move tree_entry_interesting() to tree-walk.c and export itNguyễn Thái Ngọc Duy1-112/+0
2011-02-03tree_entry_interesting(): remove dependency on struct diff_optionsNguyễn Thái Ngọc Duy1-16/+10
2011-02-03Convert struct diff_options to use struct pathspecNguyễn Thái Ngọc Duy1-35/+13
2010-10-26Merge branch 'en/tree-walk-optim'Junio C Hamano1-14/+15
2010-08-26diff_tree(): Skip skip_uninteresting() when all remaining paths interestingElijah Newren1-13/+12
2010-08-26tree_entry_interesting(): Make return value more specificElijah Newren1-1/+1
2010-08-26Document pre-condition for tree_entry_interestingElijah Newren1-0/+2
2010-08-13diff --follow: do call diffcore_std() as necessaryJunio C Hamano1-0/+11
2010-08-13diff --follow: do not waste cycles while recursingJunio C Hamano1-1/+1
2010-05-07Make git log --follow find copies among unmodified files.Bo Yang1-1/+1
2010-01-18Performance optimization for detection of modified submodulesJens Lehmann1-4/+4
2009-07-29diff: Rename QUIET internal option to QUICKJunio C Hamano1-1/+1
2009-07-29diff: change semantics of "ignore whitespace" optionsJunio C Hamano1-1/+2
2009-07-01Merge branch 'ne/maint-1.6.0-diff-tree-t-r-show-directory'Junio C Hamano1-0/+6
2009-06-13diff-tree -r -t: include added/removed directories in the outputNick Edelen1-0/+6
2009-04-22Fix typos / spelling in commentsMike Ralphson1-1/+1
2009-04-01tree_entry_interesting: a pathspec only matches at directory boundaryBjörn Steinbrink1-3/+9
2008-08-31'git foo' program identifies itself without dash in die() messagesJunio C Hamano1-1/+1
2008-07-16Fix buffer overflow in git diffDmitry Potapov1-5/+22
2007-12-12Fix small memory leaks induced by diff_tree_setup_pathsMike Hommey1-0/+2
2007-11-11Make the diff_options bitfields be an unsigned with explicit masks.Pierre Habouzit1-7/+7
2007-10-21Fix diffcore-break total breakageLinus Torvalds1-0/+1
2007-06-22Fix up "git log --follow" a bit..Linus Torvalds1-9/+28
2007-06-22Finally implement "git log --follow"Linus Torvalds1-0/+59
2007-03-22tree_entry_interesting(): allow it to say "everything is interesting"Junio C Hamano1-5/+28
2007-03-22tree-diff: avoid strncmp()Junio C Hamano1-23/+37
2007-03-22Teach tree_entry_interesting() that the tree entries are sorted.Junio C Hamano1-6/+35
2007-03-21Initialize tree descriptors with a helper function rather than by hand.Linus Torvalds1-10/+12
2007-03-19Set up for better tree diff optimizationsLinus Torvalds1-10/+34
2007-03-18Merge branch 'ar/diff'Junio C Hamano1-0/+2
2007-03-18Avoid unnecessary strlen() callsLinus Torvalds1-27/+29
2007-03-14Teach --quiet to diff backends.Junio C Hamano1-0/+2
2007-02-27convert object type handling from a string to a numberNicolas Pitre1-3/+3
2006-10-26Make git-cherry handle root treesRene Scharfe1-0/+18
2006-08-17Do not use memcmp(sha1_1, sha1_2, 20) with hardcoded length.David Rientjes1-2/+1
2006-08-14Make show_entry voidDavid Rientjes1-6/+6
2006-04-10tree-diff: do not assume we use only one pathspecJunio C Hamano1-21/+25
2006-04-04Use blob_, commit_, tag_, and tree_type throughout.Peter Eriksen1-3/+4
2006-03-29tree/diff header cleanup.Junio C Hamano1-28/+0
2006-01-31Make the "struct tree_desc" operations available to othersLinus Torvalds1-6/+6
2005-12-26avoid asking ?alloc() for zero bytes.Junio C Hamano1-0/+4
2005-10-22Split up tree diff functions into tree-diff.c libraryLinus Torvalds1-0/+270