8000 Add `diff` command for all branches · Issue #12 · gittower/git-flow-next · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add diff command for all branches #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
alexrinass opened this issue Apr 17, 2025 · 1 comment
Open

Add diff command for all branches #12

alexrinass opened this issue Apr 17, 2025 · 1 comment

Comments

@alexrinass
Copy link
Contributor
alexrinass commented Apr 17, 2025

Add support for comparing changes between topic branches and their parent branches, extending the functionality from git-flow-avh's feature-only diff to all topic branch types.

  • Implement the git flow <topic> diff command for showing changes in a topic branch that aren't in the parent branch:
    • git flow feature diff - Compare feature branch to develop
    • git flow release diff - Compare release branch to develop
    • git flow hotfix diff - Compare hotfix branch to master/main
  • The command should:
    1. Determine the appropriate parent branch based on topic type
    2. Show all changes in the topic branch that aren't in the parent branch
    3. Support optional branch name parameter or use current branch if not specified
  • Command syntax:
    git flow <topic> diff [-h] [<name|nameprefix>]
    
  • Implement the following options:
    • -h,--help/--no-help - Show help information
    • --showcommands - Display git commands as they are executed
  • Error handling:
    • Check if specified branch exists and is a valid topic branch
    • Handle name prefix matching for partial branch names
  • Add comprehensive documentation for this command
  • Add tests to verify the command works correctly for all branch types
Copy link
linear bot commented Apr 17, 2025
TOWR-28 Add “diff“ command for all branches

git-flow-avh only supports this for feature branches, but it makes sense for all branches that have a parent.

git flow feature diff - Show all changes of the feature branch

Description

Show all changes in <name> that are not in <develop>

Synopsis

git flow feature diff [-h] [<name|nameprefix>]

Options

-h,--[no]help
show this help

--showcommands
Show git commands while executing them

@alexrinass alexrinass changed the title Add “diff“ command for all branches Add diff command for all branches Apr 19, 2025
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

No branches or pull requests

1 participant
0