Skip to content
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

Make it possible to use git tags/urls as target for old/new #204

Open
dkbast opened this issue Jan 31, 2025 · 0 comments
Open

Make it possible to use git tags/urls as target for old/new #204

dkbast opened this issue Jan 31, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@dkbast
Copy link

dkbast commented Jan 31, 2025

Is your feature request related to a problem? Please describe.
I would like to check for breaking changes between to git commits in a local git repository. A bonus would be if it was possible to point the tool to any hosted git repository as well (in addition to pub - eg. for self hosted packages).

Describe the solution you'd like
I would like to be able to pass a hash or similar identifier instead of a path, or attached to a path (e.g. --old #HEAD~2 or --old git:./#HEAD~2)

Describe alternatives you've considered
An alternative would be to create a wrapper script which creates a worktree ( git worktree add ../old-worktree <old-commit-hash> ) or an archive (git archive <old-commit> | tar xf - -C ../old-version) - and then clean it up afterwards. But since the tool already needs to be able to handle remote packages, I guess this could also be added to the cli.

Additional context
This would make this tool very useful for forensic debugging when trying to figure out where something broke as well as making it usable in other projects like serverpod where I think this could be used to help with versioning the generated clients (see serverpod/serverpod#2902 )

@dkbast dkbast added the enhancement New feature or request label Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant