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

Re: [PATCH] Add format-patch option --no-name-prefix.

From
Andreas Ericsson <ae@op5.se>
Date
Dec 19, 2007, 08:55 UTC
Message-ID
<4768DC78.9010304@op5.se>
In-Reply-To
<4767F145.3030109@obry.net>
Pascal Obry wrote:
Show 9 quoted lines
> Andreas Ericsson a écrit :
>> Pascal Obry wrote:
>>>      int thread = 0;
>>> +    int no_name_prefix = 0;
>> Do we not need no double negations, yes?
> 
> Not sure, looks clearer to use variable name corresponding to the option
> name to me...
> 

Perhaps. We just had this discussion on the list where multiple people had extended a negative-sounding option. Personally I find it hard to parse and bug-prone to write (and edit) something like

	if (!no_prefix)
		add_the_prefix();",
but perhaps that's just me.
-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
Previous: Pascal ObryNext: Johannes Sixt
Message 17 of 22 in “Add format-patch option --no-name-prefix.”
  1. Add format-patch option --no-name-prefix.Pascal Obry, Dec 18, 2007
  2. Pascal ObryDec 18, 2007
  3. Johannes SixtDec 18, 2007
  4. Pascal ObryDec 18, 2007
  5. Linus TorvaldsDec 18, 2007
  6. Pascal ObryDec 18, 2007
  7. Johannes SchindelinDec 18, 2007
  8. Pascal ObryDec 18, 2007
  9. Teach diff machinery to display other prefixes than "a/" and "b/"Johannes Schindelin, Dec 18, 2007
  10. Pascal ObryDec 18, 2007
  11. Linus TorvaldsDec 18, 2007
  12. Teach diff machinery to display other prefixes than "a/" and "b/"Johannes Schindelin, Dec 18, 2007
  13. Linus TorvaldsDec 18, 2007
  14. Junio C HamanoDec 18, 2007
  15. Andreas EricssonDec 18, 2007
  16. Pascal ObryDec 18, 2007
  17. Andreas EricssonDec 19, 2007
  18. Johannes SixtDec 19, 2007
  19. Teach diff machinery to display other prefixes than "a/" and "b/"Johannes Schindelin, Dec 18, 2007
  20. Pascal ObryDec 18, 2007
  21. Johannes SchindelinDec 18, 2007
  22. Matthieu MoyDec 18, 2007

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.