Skip to content

Autoupdate replacing a sha with 'older' release #1744

@AleksaC

Description

@AleksaC

I use a pre-commit hook with a rev pointing to a sha. When I use autoupdate it changes the rev to latest release, but that release is older than the previous sha. I think it would make sense not to change the rev if it's pointing to a commit after the latest release.

Of course, this can be circumvented by passing the other repos to autoupdate but it is a bit cumbersome. I can also update that specific hook using --bleeding-edge but I don't really want the latest commit, just the commit where a specific feature is introduced. This might also be useful for pre-commit.ci where AFAIK you cannot specify which repos should be updated.

Just to clarify by older I'm not thinking of dates instead I'm refering to the order they appear in history for the specific branch. I'm not sure if this notion can be generalized across branches.

If you think that it makes sense to implement this and that it can be tackled by someone without much familiarity with the codebase I can try to provide a PR for this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions