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

[RFH] Janitor projects around core GIT

From
Junio C Hamano <junkio@cox.net>
Date
May 17, 2005, 04:48 UTC
Message-ID
<7vpsvqihkh.fsf@assigned-by-dhcp.cox.net>

Here is a list of things I would like to see done by people who want to get their hands dirty ;-).

 * Rewrite command line parsing code, probably using GNU getopt.
   I have three gripes about option parsing in the current code:
   - Some pretend to take long options, but allow only --long
     without allowing --lon or --lo.  Some say "--flag=argument"
     while others say "--flag argument", which is inconsistent
     and confusing.
   - For some commands the order of options matter for no
     apparently good reason.  The most prominent example is
     "checkout-cache -a -f" vs "checkout-cache -f -a"; yes I
     know about the comment Linus wrote, but it is more a
     warning for people not to get confused by this behaviour;
     not a justification for that confusing behaviour.
   - Related to the second point, many commands perform actions
     as they go parsing and processing the options.  It would be
     cleaner and easier to add new options later if the option
     processing loop is reorganized so that optionss are done
     first and after all options are collected, real processing
     begins.  The current way lets you make "update-cache foo
     --add bar" to refuse to add foo but to allow adding bar,
     but I do not think being able to do that kind of thing is
     buying us much.
 * Extend coverage of tests to more commands in the t/ directory.
 * const-ness cleanups.
 * Use correct types for sizes of things, as HPA suggested the
   other day.
 * It would be nice if somebody who is handy with checker/sparse
   type tools to run them on core GIT part and/or run core GIT
   part under purify.
Next: Jeff Garzik
Message 1 of 4 in “[RFH] Janitor projects around core GIT”
  1. Junio C HamanoMay 17, 2005
  2. Jeff GarzikMay 17, 2005
  3. Ed L CashinMay 17, 2005
  4. Name of test directory (was: [RFH] Janitor projects around core GIT)Kevin Smith, May 17, 2005

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.