Re: [PATCH 3/6] git-check-ref-format.txt: avoid single quote

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Martin Ågren wrote:
> On Fri, 14 May 2021 at 00:00, Junio C Hamano <gitster@xxxxxxxxx> wrote:

> > The proposed log message did not explain why you wanted to avoid
> > double-quote pair on the "cat-file" line.  Is this meant as a
> > workaround for the "single quotes are shown around git cat-file"
> > issue?
> 
> Hmm, I've somehow tended to think that it's 'git foo' the tool and `git
> foo --bar baz` the actual invocation. SQs for the former, backticks for
> the latter. Like, `git cat-file` is not a correct invocation of 'git
> cat-file'. But I think I'm starting to see the error in my ways --
> CodingGuidelines says to use backticks around command names, so it
> really should be `git cat-file`. And changing that might just happen to
> avoid the issue that triggered this patch.

Hmmm. `git status`, `git branch`, `git diff`, `git log`.

All these are both "tools" **and** invocations. In fact, you an pretty
much "invoke" any thing: `git checkout` might not do anything... But it
runs.

-- 
Felipe Contreras



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux