git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 2/2] Added tests for git reset -

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 10, 2015, 17:36 UTC
Message-ID
<xmqqfv9c21qj.fsf@gitster.dls.corp.google.com>
In-Reply-To
<CAPig+cRgA5ZMM8d+ep8cyoZpK8FubzDBNVACgGWyWdRgF+nq7w@mail.gmail.com>
Eric Sunshine <sunshine@sunshineco.com> writes:
>> +test_expect_success 'reset - with no @{-1}' '
>> +       git init new --quiet &&
>
> Why --quiet?

Also, to make sure tests serve as good examples, tests should stick to "options first and then arguments", i.e. "git init --quiet new", if it passes options.

Previous: Eric SunshineNext: Eric Sunshine
Message 5 of 7 in “Adding - shorthand for @{-1} in RESET command”
  1. 1/2 Adding - shorthand for @{-1} in RESET commandSundararajan R, Mar 9, 2015
  2. 2/2 Added tests for git reset -Sundararajan R, Mar 9, 2015
  3. Torsten BögershausenMar 10, 2015
  4. Eric SunshineMar 10, 2015
  5. Junio C HamanoMar 10, 2015
  6. Eric SunshineMar 10, 2015
  7. Junio C HamanoMar 10, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.