Skip to content

Possibility to set per-command options, arguments, config #122

Description

@geek-merlin

Currently this seems the only way of setting command args etc.

    $repo->addGlobalConfig('rebase.autoStash', 'true');
    $repo->addGlobalCommandArgument('--strategy=ours');
    $repo->pull($destination, 'HEAD', FALSE);
    $repo->removeGlobalCommandArgument('--strategy=ours');
    $repo->removeGlobalConfig('rebase.autoStash');

I'd propose to extend all commands' signatures like this:
$repo->pull($destination, 'HEAD', FALSE, /* options */ [], /* args */ ['--strategy=ours'], /* config*/['rebase.autoStash' => TRUE]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions