diff options
author | Dave Borowitz <dborowitz@google.com> | 2014-05-05 15:15:13 -0700 |
---|---|---|
committer | Dave Borowitz <dborowitz@google.com> | 2014-05-05 16:41:08 -0700 |
commit | dbf922ce91c2bcde8b4604cc2a4ed8ecf8de54f4 (patch) | |
tree | b75f6bb323aaf091585f6adc6c962315887a35cb /org.eclipse.jgit.pgm/src | |
parent | 614a477b079412d05762808b7ab0d014cf05e80f (diff) | |
download | jgit-dbf922ce91c2bcde8b4604cc2a4ed8ecf8de54f4.tar.gz jgit-dbf922ce91c2bcde8b4604cc2a4ed8ecf8de54f4.zip |
RevWalk: Allow disabling parent rewriting
Previously, setting any TreeFilter on a RevWalk triggered parent
rewriting, which in the current StartGenerator implementation ends up
buffering the entire commit history in memory. Aside from causing poor
performance on large histories, this does not match the default
behavior of `git rev-list`, which does not rewrite parent SHAs unless
asked to via --parents/--children.
Add a new method setRewriteParents() to RevWalk to disable this
behavior. Continue rewriting parents by default to maintain backwards
compatibility.
Change-Id: I1f38e05526071c75ca58095e312663de5e6f334d
Diffstat (limited to 'org.eclipse.jgit.pgm/src')
0 files changed, 0 insertions, 0 deletions