Needed for "manual edit" RStudio 'Addin' functionality. Performs a git reset, git adds and commits a temporary version of control file to index (for subsequent diff), opens editor for edits. The intent is that after the diff is created the commit will be removed.
start_manual_edit(
m,
combine_patch = NA_character_,
replace_ctl = NA_character_
)
A list
with the temporary control file name and patch details (name
and path).
An nm object
Character. Optional patch to be applied first.
If not NA_character_
, before displaying, the file will
be replaced with this