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

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

From
Alex Riesen <raa.lkml@gmail.com>
Date
Mar 2, 2008, 09:40 UTC
Message-ID
<20080302094031.GA2973@steel.home>
In-Reply-To
<47C98472.8000002@gmail.com>
Carlos Rica, Sat, Mar 01, 2008 17:29:38 +0100:
Show 12 quoted lines
> @@ -169,40 +173,31 @@ static const char *reset_type_names[] = { "mixed", "soft", "hard", NULL };
> 
>  int cmd_reset(int argc, const char **argv, const char *prefix)
>  {
> -	int i = 1, reset_type = NONE, update_ref_status = 0, quiet = 0;
> +	int i = 0, reset_type = NONE, update_ref_status = 0, quiet = 0;
>  	const char *rev = "HEAD";
>  	unsigned char sha1[20], *orig = NULL, sha1_orig[20],
>  				*old_orig = NULL, sha1_old_orig[20];
>  	struct commit *commit;
>  	char *reflog_action, msg[1024];
> +	struct option options[] = {
"static const"?
Previous: Johannes SchindelinNext: Carlos Rica
Message 10 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.