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

Re: What's cooking in git.git (Mar 2009, #05; Tue, 17)

From
Jeff King <peff@peff.net>
Date
Mar 18, 2009, 05:52 UTC
Message-ID
<20090318055222.GA17128@coredump.intra.peff.net>
In-Reply-To
<7vbprzo0si.fsf@gitster.siamese.dyndns.org>
On Tue, Mar 17, 2009 at 10:30:37PM -0700, Junio C Hamano wrote:
Show 8 quoted lines
> * mv/parseopt-ls-files (Sat Mar 7 20:27:22 2009 -0500) 4 commits
>  + ls-files: fix broken --no-empty-directory
>  + t3000: use test_cmp instead of diff
>  + parse-opt: migrate builtin-ls-files.
>  + Turn the flags in struct dir_struct into a single variable
> 
> The tip one was a subject for further discussion, but nothing is queued
> yet.

I am inclined to leave it as-is. The other sane option would be converting it to use NONEG, as Miklos suggested.

Doing it right would probably mean adding a "this option is the opposite of what we would usually do" flag to parse-options which would display the option as "no-<option>" in the usage, and would reverse clearing and setting the bit (i.e., --empty-directory would clear the HIDE_DIRECTORY bit and --no-empty-directory would set it). But I don't think it is worth the work to add a negatable version of an option that has never existed before and which nobody has requested to use.

-Peff
Previous: Junio C HamanoNext: Miklos Vajna
Message 2 of 3 in “What's cooking in git.git (Mar 2009, #05; Tue, 17)”
  1. Junio C HamanoMar 18, 2009
  2. Jeff KingMar 18, 2009
  3. Miklos VajnaMar 18, 2009

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.