Skip to main content

resolve_private_commit_args

Function resolve_private_commit_args 

Source
pub fn resolve_private_commit_args(
    args: &[String],
    pathspecs: &[String],
    mode: TransactionMode,
    selected_privately: bool,
) -> Vec<String>
Expand description

What: Chooses the arguments of the real git commit for the commit mode. Why: Explicit-path commits drop their pathspecs; index commits drop selection controls only when selection ran privately.

In TS you’d write (pseudocode):

resolvePrivateCommitArgs({ args, pathspecs, mode, selectedPrivately });