aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/TextBuiltin.java
diff options
context:
space:
mode:
authorJonathan Nieder <jrn@google.com>2018-05-14 08:54:01 -0700
committerJonathan Nieder <jrn@google.com>2018-05-14 09:02:44 -0700
commit7d9246f1636ca35f2db252581769d36c4c80e309 (patch)
tree2ca3a105f56dbdc387531c09867692733ae7cce7 /org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/TextBuiltin.java
parente9e150fdd24dbeb54df614a4d47da3074c766b28 (diff)
downloadjgit-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