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:54 UTC
Message-ID
<1b46aba20803020454v322f061bi4f34a737e9e2b7f3@mail.gmail.com>
In-Reply-To
<20080302094031.GA2973@steel.home>
On Sun, Mar 2, 2008 at 10:40 AM, Alex Riesen <raa.lkml@gmail.com> wrote:
Show 18 quoted lines
> Carlos Rica, Sat, Mar 01, 2008 17:29:38 +0100:
>
> > @@ -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"?
>
>

"static const" what? options? cmd_reset? reset_type_names?

Previous: Alex RiesenNext: Alex Riesen
Message 11 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.