diff options
author | Jonathan Nieder <jrn@google.com> | 2018-05-14 08:54:01 -0700 |
---|---|---|
committer | Jonathan Nieder <jrn@google.com> | 2018-05-14 09:02:44 -0700 |
commit | 7d9246f1636ca35f2db252581769d36c4c80e309 (patch) | |
tree | 2ca3a105f56dbdc387531c09867692733ae7cce7 /org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/TextBuiltin.java | |
parent | e9e150fdd24dbeb54df614a4d47da3074c766b28 (diff) | |
download | jgit-7d9246f1636ca35f2db252581769d36c4c80e309.tar.gz jgit-7d9246f1636ca35f2db252581769d36c4c80e309.zip |
RawParseUtils#lineMap: Simplify by using null sentinel internally
Add an internal lineMapOrNull helper that returns null when the file
is binary.
This is simpler than using an exception for control flow and avoids
having to override fillInStackTrace to avoid a performance regression.
Change-Id: Ib8bb8df6a6bbd60c62cfb3b4c484a962a98b7507
Diffstat (limited to 'org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/TextBuiltin.java')
0 files changed, 0 insertions, 0 deletions