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

Add -F to commit search to treat keywords as strings (#28744) #28748

Merged
merged 1 commit into from
Jan 10, 2024

Commits on Jan 10, 2024

  1. Add -F to commit search to treat keywords as strings (go-gitea#28744)

    Fixes go-gitea#28269
    
    The [default
    behavior](https://git-scm.com/docs/git-log#Documentation/git-log.txt---basic-regexp)
    of --grep in git log is to interpret the keyword as a regular
    expression. This causes the search to fail in the cases where the search
    keyword contains a `[`, since `[` is a special character used in grep.
    
    If we want our keywords to be interpreted as 'strings', we should use
    [-F
    flag](https://git-scm.com/docs/git-log#Documentation/git-log.txt---basic-regexp).
    me-heer authored and GiteaBot committed Jan 10, 2024
    Configuration menu
    Copy the full SHA
    d7f5feb View commit details
    Browse the repository at this point in the history