"Johannes Schindelin via GitGitGadget" <gitgitgadget@xxxxxxxxx> writes: > + * While the main branch name might often be `main` for new > + * repositories (and `master` for aged ones), and such well-known names As I said, if you used a different word for the first 'main' in the sentence, it reads much better. > + * may not necessarily need anonymizing, it could be configured to use > + * a secret word that the user may not want to reveal. > */ > - if (!strcmp(refname, "refs/heads/master")) > + if (!main_branch) > + main_branch = git_main_branch_name(MAIN_BRANCH_FULL_NAME); > + > + if (!strcmp(refname, main_branch)) > return "refs/heads/ref0"; The same comment as 02/12 applies here. If the helper function returns "" when the user says that no branch is more special than others in the repository, the code would automatically do the right thing. In any case, thanks for working on it. I am on "vacation" so will be commenting on the rest of the series later in the week.