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

Re: Confusing inconsistent option syntax

From
Duy Nguyen <pclouds@gmail.com>
Date
Dec 2, 2018, 10:18 UTC
Message-ID
<CACsJy8Ct3YY1TPD=pFoBGX-0woMNvM0JHYC1iRDGxWLJR51Esg@mail.gmail.com>
In-Reply-To
<20181202100747.GA5019@laptop>
On Sun, Dec 2, 2018 at 11:13 AM Robert White <rjwhite2453@gmail.com> wrote:
Show 7 quoted lines
>
> `git log --pretty short` gives the error message "ambiguous argument
> 'short'". To get the expected result, you need to use `git log
> --pretty=short`. However, `git log --since yesterday` and `git log
> --since=yesterday` both work as expected.
>
> When is an = needed? What is the reason for these inconsistencies?

--pretty can take no arguments. --pretty alone is the same as --pretty=medium. --since always needs an argument.

-- 
Duy
Previous: Robert WhiteNext: Jeff King
Message 2 of 3 in “Confusing inconsistent option syntax”
  1. Robert WhiteDec 2, 2018
  2. Duy NguyenDec 2, 2018
  3. Jeff KingDec 3, 2018

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.