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

git format-patch --range-diff accepts non-quoted arguments (shouldn't it be?)

From
Bagas Sanjaya <bagasdotme@gmail.com>
Date
Oct 8, 2021, 09:34 UTC
Message-ID
<c2c5f3b0-dfdb-0f3f-4c64-8f44d3e74a07@gmail.com>
Hi,

I think it is rather odd that `git format-patch --range-diff` accepts <previous> argument without enclosed in quotes, since it is always multi-word (separated by space). E.g., below works:

     $ git format-patch <options> --range-diff=main..previous main..HEAD
but below returns nothing:
     $ git format-patch <options> --range-diff="main..previous main..HEAD"

Should the quoted <previous> argument to --range-diff be allowed, and forbid the unquoted counterpart?

-- 
An old man doll... just what I always wanted! - Clara
Next: Junio C Hamano
Message 1 of 2 in “git format-patch --range-diff accepts non-quoted arguments (shouldn't it be?)”
  1. Bagas SanjayaOct 8, 2021
  2. Junio C HamanoOct 8, 2021

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.