Skip to content

cmd/log: various fixes. #17056

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

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 enabled auto-merge April 9, 2024 09:46
@MikeMcQuaid MikeMcQuaid merged commit a21c71f into master Apr 9, 2024
@MikeMcQuaid MikeMcQuaid deleted the fix_brew_log branch April 9, 2024 09:55
@github-actions github-actions bot added the outdated PR was locked due to age label May 10, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

brew log regression after port to abstract_command
2 participants