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.

@claytonrcarter claytonrcarter force-pushed the record-allow-empty branch 15 times, most recently from 42fb4e8 to ca86bfb Compare February 6, 2026 15:43
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