Skip to content

Enhance git commit with missing options #1845

Description

@jelmer

Summary

The git commit command in dulwich is missing several useful options that are available in standard git.

Missing Options

  • --patch: Use interactive patch selection interface
  • --reuse-message: Reuse commit message from another commit
  • --reedit-message: Reuse and edit commit message from another commit
  • --fixup: Create a fixup commit for use with rebase --autosquash
  • --squash: Create a commit for squashing with previous commit
  • --author: Override the commit author
  • --date: Override the commit date

Benefits

These options would improve dulwich's git commit functionality by:

  • Enabling interactive workflows with --patch
  • Supporting advanced git workflows like fixup/squash commits
  • Allowing fine-grained control over commit metadata with --author and --date
  • Facilitating commit message reuse and editing with --reuse-message and --reedit-message

This would bring dulwich's commit command closer to feature parity with standard git and support more advanced development workflows.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions