def get_hunk_diff(self, pt):
        header_start = self.diff_starts[bisect.bisect(self.diff_starts, pt) - 1]
        header_end = self.diff_header_ends[bisect.bisect(self.diff_header_ends, pt) - 1]

        if not header_end or header_end < header_start:
            # The cursor is not within a hunk.
            return

        diff_start = self.hunk_starts[bisect.bisect(self.hunk_starts, pt) - 1]
        diff_end = self.hunk_ends[bisect.bisect(self.hunk_ends, pt)]

        header = self.view.substr(sublime.Region(header_start, header_end))
        diff = self.view.substr(sublime.Region(diff_start, diff_end))

        return header + diff
Given a cursor position, find and return the diff header and the
dataset/ETHPy150Open divmain/GitSavvy/core/commands/diff.py/GsDiffStageOrResetHunkCommand.get_hunk_diff