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

cmd/log: various fixes. #17056

Merged
merged 1 commit into from Apr 9, 2024
Merged

cmd/log: various fixes. #17056

merged 1 commit into from Apr 9, 2024

Conversation

MikeMcQuaid
Copy link
Member

  • Don't pass through args: when called with no arguments; these don'T need to be passed and end up breaking things instead.
  • Make T.must as early as possible.
  • Add a type signature to git_log to enable typed: strict and catch these sorts of bugs earlier next time.
  • --follow only works with a single file so check if the path is a file before adding it to the arguments.

Fixes #17054

- Don't pass through `args:` when called with no arguments; these don'T
  need to be passed and end up breaking things instead.
- Make `T.must` as early as possible.
- Add a type signature to `git_log` to enable `typed: strict` and catch
  these sorts of bugs earlier next time.
- `--follow` only works with a single file so check if the path is a
  file before adding it to the arguments.
@MikeMcQuaid MikeMcQuaid merged commit a21c71f into master Apr 9, 2024
25 checks passed
@MikeMcQuaid MikeMcQuaid deleted the fix_brew_log branch April 9, 2024 09:55
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

Successfully merging this pull request may close these issues.

brew log regression after port to abstract_command
2 participants