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