On Mon, Nov 21, 2022 at 10:55 AM Rudy Rigot <rudy.rigot@xxxxxxxxx> wrote: > > That said, this is minor, and I'm not keen on eating up more of your > > time or reviewer time, so I doubt this is worth a reroll. > > Eh, there's nothing wrong with striving for perfection. Lemme do one > more reroll... Reviewer time is a scarce resource on the mailing list these days, which is why I'm hesitant to see rerolls for minor or subjective changes. However, if you're going to reroll anyhow, I have a couple more things to say... (below) > > So, it's not apparent > > why you need to create a specially-named branch here rather than > > simply accepting the default branch name. > > The reason was that it failed some CI pipelines before I did this, > with some pipelines printing "main" instead of "master" into the git > status output. I fixed it right away, so I don't know if it was a CI > glitch that day or if it would still be the same running it now. I > could have redacted the branch name away from the output, but it > seemed simpler and more readable to just set the branch name in stone > for all pipelines. Most likely it wasn't a glitch, but rather (I'd guess) that Windows CI uses "main" already, whereas Unix CI's still use "master". > > an alternative would have been to override the default branch name at the > > top of the script: > > Oh, this seems like a better way to do what I was trying to do. I'll > change it now. > > > we have a test_unconfig() function > > I'll use that. > > New patch coming! If you're going to reroll, then I'll mention a couple more things which I held back before since I want to use reviewer time wisely. Nevertheless... First, having the commit message explain the problem first and then the solution is more reviewer-friendly, not the solution and then the problem as this patch is doing. Additionally, the commit message should be written in imperative mood. Documentation/SubmittingPatches has a good discussion of these points. It's also typically unnecessary for the commit message to say that the patch is adding new tests; reviewers assume that you will do so when appropriate, and the patch itself shows plainly enough that you did. Taking these points into consideration, you might write the commit message like this: status: modernize git-status "slow untracked files" advice `git status` can be slow when there are a large number of untracked files and directories since Git must search the entire worktree to enumerate them. When it is too slow, Git prints advice with the elapsed search time and a suggestion to disable the search using the `-uno` option. This suggestion also carries a warning that might scare off some users. However, these days, `-uno` isn't the only option. Git can reduce the size and time of the untracked file search when the `core.untrackedCache` and `core.fsmonitor` features are enabled by caching results from previous `git status` invocations. Therefore, update the `git status` man page to explain the various configuration options, and update the advice to provide more detail about the current configuration and to refer to the updated documentation. Second, we usually don't want to waste a test script number (such as "t7065") if we can avoid it, especially for so few tests and such minor functionality. So, if there is an existing test script in which these new tests might fit, it's better to add them to that script instead, usually at the end of the script. (I haven't checked, but maybe you can find an existing script which would be a good fit; if not, then placing them in a new standalone script, as the patch is already doing, may be okay.)