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

Re: git-subtree: directory mismatch

From
Avery Pennarun <apenwarr@gmail.com>
Date
Nov 25, 2009, 23:45 UTC
Message-ID
<32541b130911251545x212cc55el9f8d4bc44eadd45b@mail.gmail.com>
In-Reply-To
<20091125234122.GA31422@atjola.homenet>
2009/11/25 Björn Steinbrink <B.Steinbrink@gmx.de>:
Show 8 quoted lines
> On 2009.11.25 18:20:45 -0500, Avery Pennarun wrote:
>> I read the earlier thread and I still don't quite understand this
>> point.  What makes it difficult?
>
> I guess it's -Xfoo vs. -X foo (note the space). Same deal with log
> -S<string>. "git log -S foo" would look for an empty string (I guess)
> being added/removed in some commit in foo's history, while "git log
> -Sfoo" looks for "foo" being added/remove in HEAD's history.

Oh. Ouch. Isn't it standard for options-that-take-string-parameters to always *require* that parameter? This seems to be how getopt works. Basically "-X foo" is the same as "-Xfoo" in that system.

If parse_options doesn't already do this, should I try to add it somehow?
Avery
Previous: Björn SteinbrinkNext: Marc Fournier
Message 11 of 12 in “git-subtree: directory mismatch”
  1. Marc FournierNov 24, 2009
  2. Avery PennarunNov 24, 2009
  3. Nanako ShiraishiNov 24, 2009
  4. Avery PennarunNov 25, 2009
  5. Junio C HamanoNov 25, 2009
  6. Avery PennarunNov 25, 2009
  7. Junio C HamanoNov 25, 2009
  8. Johannes SchindelinNov 25, 2009
  9. Avery PennarunNov 25, 2009
  10. Björn SteinbrinkNov 25, 2009
  11. Avery PennarunNov 25, 2009
  12. Marc FournierNov 25, 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.