Always use the FileHeader buffer during Patch.parseHunks
commit7a8b37691f3c2fa3af29b93a42a74e0c507cde2b
authorShawn O. Pearce <spearce@spearce.org>
Fri, 12 Dec 2008 02:46:14 +0000 (11 18:46 -0800)
committerRobin Rosenberg <robin.rosenberg@dewire.com>
Sat, 13 Dec 2008 02:13:26 +0000 (13 03:13 +0100)
tree317ce32d6315542cdd711e3a8987c22b0c0b885e
parente6f86d3a7c8294b24e080c633cbf5a66c258cb60
Always use the FileHeader buffer during Patch.parseHunks

This ensures that if the code is ever refactored in the future to
permit different entry path into parseHunks that we won't read the
wrong buffer and potentially setup an invalid FileHeader.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
org.spearce.jgit/src/org/spearce/jgit/patch/Patch.java