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

Re: [PATCH] Make builtin-reset.c use parse_options.

From
CRCarlos Rica <jasampler@gmail.com>
Date
Mar 2, 2008, 12:37 UTC
Message-ID
<1b46aba20803020437p2a5128a5wfee3e98c32c1a610@mail.gmail.com>
In-Reply-To
<7vir05x2di.fsf@gitster.siamese.dyndns.org>
On Sun, Mar 2, 2008 at 3:53 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 8 quoted lines
> Carlos Rica <jasampler@gmail.com> writes:
>
>  > Signed-off-by: Carlos Rica <jasampler@gmail.com>
>
>  Hmmm.  "git reset -h" now defaults to --hard?
>
>  It somehow feels a bit risky for new people.  I dunno.
>
I don't understand what do you mean.

Option -h just prints the options and exits. Do you mean that the help message is wrong?

Also, there is a test to check that "git reset" defaults to --mixed ('--mixed reset to HEAD should unadd the files' only run a "git reset" without parameters), and changing it to do a --hard reset makes the tests to fail.

If there's a change in the behaviour of the command, please, show me how to test it. I cannot see anything wrong now.

-- Carlos
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 15 in “Make builtin-reset.c use parse_options.”
  1. Make builtin-reset.c use parse_options.Carlos Rica, Mar 1, 2008
  2. Junio C HamanoMar 2, 2008
  3. Carlos RicaMar 2, 2008
  4. Junio C HamanoMar 2, 2008
  5. Carlos RicaMar 3, 2008
  6. Pierre HabouzitMar 3, 2008
  7. Junio C HamanoMar 3, 2008
  8. Pierre HabouzitMar 4, 2008
  9. Johannes SchindelinMar 2, 2008
  10. Alex RiesenMar 2, 2008
  11. Carlos RicaMar 2, 2008
  12. Alex RiesenMar 2, 2008
  13. Carlos RicaMar 2, 2008
  14. Alex RiesenMar 2, 2008
  15. Carlos RicaMar 3, 2008

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.