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

Cache size data by commit hash, and enable direct commit comparison via CLI #23

Open
ItsNickBarry opened this issue Oct 23, 2022 · 2 comments

Comments

@ItsNickBarry
Copy link
Owner

Example usage: hh size-contracts --compare 103541870332c9fb9125fad3684fcee613f13960

@ItsNickBarry
Copy link
Owner Author

Another possibility would be "named" outputs. Multiple such outputs could be cached.

For example:

hh size-contracts --name asdf
# later...
hh size --compare asdf

Using --compare with a git commit hash could still work here (as long as nobody uses a git commit hash as a --name).

@ItsNickBarry
Copy link
Owner Author

Make --compare a variadic argument, so that it works like git diff:

  • no arguments compares uncommitted changes to current commit
  • 1 argument compares uncommitted changes to given reference
  • 2 arguments compares 2 references

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