Skip to content

feat: replay commits diff from default or specified branch #101

@unhappychoice

Description

@unhappychoice

Summary

Add the ability to replay commits that differ from a base branch (default branch like main/master, or a user-specified branch).

Use Case

When working on a feature branch, it would be useful to visualize and replay only the commits that are unique to the current branch compared to the base branch, rather than replaying the entire commit history.

Proposed Behavior

  • By default, compare against the repository's default branch (main or master)
  • Allow users to specify a custom base branch via CLI argument (e.g., --base <branch>)
  • Replay only the commits that exist in the current branch but not in the base branch (equivalent to git log base..HEAD)

Example

# Replay commits unique to current branch compared to main
gitlogue --base main

# Replay commits unique to current branch compared to develop
gitlogue --base develop

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions