Skip to content

Enhance git branch with missing options #1847

@jelmer

Description

@jelmer

Summary

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

Missing Options

  • --all: List both remote-tracking and local branches
  • --remotes: List only remote-tracking branches
  • --merged: List branches that have been merged into the current branch
  • --no-merged: List branches that have not been merged into the current branch
  • --contains: List branches that contain a specific commit
  • --sort: Sort branches by specified criteria (name, date, etc.)
  • --column: Display branch list in columns
  • --list: List branches matching a pattern
  • --show-current: Show the current branch name
  • --copy: Copy a branch
  • --move: Move/rename a branch
  • --edit-description: Edit the description of a branch

Benefits

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

  • Providing comprehensive branch listing capabilities with --all, --remotes, and filtering options
  • Enabling branch management workflows with merge status checking via --merged and --no-merged
  • Supporting advanced branch operations like copying and moving with --copy and --move
  • Improving output formatting and usability with --column and --sort
  • Adding branch metadata management with --edit-description

This would bring dulwich's branch command closer to feature parity with standard git and support more comprehensive branch management workflows.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions