Skip to content

merge: add a --autostash option #394

@agrn

Description

@agrn

git-rebase has a --autostash option to save unstaged changes before performing a rebase, and to restore them afterwards. Perhaps it could be interesting to add the same option to git-merge. Perhaps git-stash could be libified before we get down to this?

This was brought up in a discussion with a coworker of mine, where we talked about rebase --autostash, and I naïvely said “well, merge should have it too.” I was kind of surprised to see I was wrong on that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions