Re: [PATCH v6] status: long status advice adapted to recent capabilities
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Nov 22, 2022, 17:40 UTC
- Message-ID
- <CAPig+cQF8vjGNUux-ZMBRxbEd3V0p27oLWZ7k2=mf40kAkWVeg@mail.gmail.com>
- In-Reply-To
- <CAPig+cTrpnVOW0Y2m5xtPhLudY=rPCn3qPQA0RSso7ueFytZbQ@mail.gmail.com>
On Tue, Nov 22, 2022 at 12:18 PM Eric Sunshine <sunshine@sunshineco.com> wrote:
Show 17 quoted lines
> This basically means taking your tests pretty much as > you had them in v6, but with a little extra boilerplate. Something > like this: > > test_expect_success setup ' > git init slowstatus && > ( > cd slowstatus && > cat >.gitignore <<-\EOF && > /actual > /expected > /out > EOF > git add .gitignore && > git commit -m "Add .gitignore" > ) > '
A minor additional comment if you do go this route and place the new tests in an existing script...
Although "setup" was fine as a title in a standalone script, when adding the new tests to an existing script, you'd probably want to choose a more meaningful name. Perhaps "setup slow untracked-cache status" or something.