Skip to content

Enhance git commit with missing options #1845

Open

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.

Activity

  1. kudala-bharani commented on Sep 5, 2026

    @kudala-bharani
    Contributor

    I'll work on the --author="Name <email>" option as a focused part of this issue, using the existing porcelain support. I'll include CLI tests for Unicode identities and author/committer behavior on new and amended commits. The other options will remain tracked here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions