↓ 20 callersMethodCreatePatchBufferToStageOrUnstageSelectedLinesAccording to the user selection, returns a buffer holding a temporary patch which must be written to a temporary file and applied to the index with gi
src/TortoiseProc/StagingOperations.cpp:178