Skip to content

Conversation

claytonrcarter
Copy link
Collaborator

This adds --allow-empty support to git record. This is not very interesting on it's own, but the fun starts when you pass --insert, at which point this should behave as a short hand for git commit --allow-empty -m ... ; git move -s 'siblings(@)'.

As is, this change will only create an empty commit if there are no changes at all (staged or in the working copy). Eventually, it would be nice to have "real" support for record --new to create an empty commit regardless of what changes are currently staged or in the working copy, but I don't intend to tackle that at this time.

Primarily for creating new, empty commits with automatic rebasing, for when you
know you want to add something into a stack but you're not yet sure what.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant