'Return a patch containing the hunk for the specified line only'

def generate_hunk_patch(self, line_idx, reverse=False):

    if (not self.hunks):
        return None
    for hunk in self.hunks:
        if (line_idx <= hunk.last_line_idx):
            break
    return self.generate_patch(hunk.first_line_idx, hunk.last_line_idx, reverse=reverse)
