start_manual_edit: Start manual edit

View source: R/manual-edit.R

start_manual_editR Documentation

Start manual edit

Description

[Stable]

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.

Usage

start_manual_edit(
  m,
  combine_patch = NA_character_,
  replace_ctl = NA_character_
)

Arguments

m

An nm object

combine_patch

Character. Optional patch to be applied first.

replace_ctl

If not NA_character_, before displaying, the file will be replaced with this

Value

A list with the temporary control file name and patch details (name and path).


NMproject documentation built on Sept. 30, 2022, 1:06 a.m.