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

Look for branches that are literally the word main #1981

Commits on Oct 22, 2021

  1. Look for branches that are literally the word main

    I have a repo with many other branches that contain the string `main`,
    but our default branch is still master.  This grep was seeing those other branches
    and deciding that my default branch was `main`.  This tighter regex
    fixes that behavior for me.
    William Richard committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    a14d9cb View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2021

  1. Configuration menu
    Copy the full SHA
    98bd0ae View commit details
    Browse the repository at this point in the history
  2. Use \s instead of \b

    \b matches things like - and _, which is often used in branch names
    William Richard committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    daaab1b View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2021

  1. Configuration menu
    Copy the full SHA
    2a23598 View commit details
    Browse the repository at this point in the history