]> source.dussan.org Git - jgit.git/commit
Detect buffering failures while writing rebase todo file 68/36968/3
authorShawn Pearce <spearce@spearce.org>
Tue, 25 Nov 2014 04:51:07 +0000 (20:51 -0800)
committerShawn Pearce <sop@google.com>
Tue, 25 Nov 2014 19:21:27 +0000 (11:21 -0800)
commitb34ea11720eca6d6523e7948a929693146640daf
treee3d193379727538c24afc1c198729b1293246ad1
parent61b632ee5a915cb5e30676aab4349402bcd8196f
Detect buffering failures while writing rebase todo file

By routing writes through SafeBufferedOutputStream the caller can be
alerted to any flush at close failures while writing or appending to
the rebase todo script.

Switch the character encoding to be done at the line granularity, as
this is sufficiently long enough that encoding overheads will not be a
bottleneck, but short enough that the amount of temporary data will
not cause memory problems for the JVM.

Change-Id: Ice5ec10a7cbadc58486d481b92940056f9ffc43a
org.eclipse.jgit/src/org/eclipse/jgit/lib/RebaseTodoFile.java