threads / discuss / 1809

git version

Subject: git version

## tl;dr

4 messages between Sep 15, 2005 and Sep 15, 2005.

replies: 3people: 2as markdown or json

David Kågedal· Sep 15, 2005, 13:47 UTC · lore

Why is "git --version" called so, and not "git version"? It works just like any other command, except that it is implemented internally in the git script.

The "git" command takes a subcommand that does some action or simply prints some informational output. The "version" subcommand fits nicely into that, and I don't see any need to prepend "--" to it.

-- 
David Kågedal
A Large Angry SCM· Sep 15, 2005, 14:31 UTC · re: David Kågedal · lore

Re: git version

David Kågedal wrote:
Show 8 quoted lines
> Why is "git --version" called so, and not "git version"?  It works
> just like any other command, except that it is implemented internally
> in the git script.
> 
> The "git" command takes a subcommand that does some action or simply
> prints some informational output.  The "version" subcommand fits
> nicely into that, and I don't see any need to prepend "--" to it.
> 

Consistency with other (non Git) commands was why I suggested the "--version" form when the discussion happened.

David Kågedal· Sep 15, 2005, 15:22 UTC · re: A Large Angry SCM · lore

Re: git version

A Large Angry SCM <gitzilla@gmail.com> writes:
Show 11 quoted lines
> David Kågedal wrote:
>> Why is "git --version" called so, and not "git version"?  It works
>> just like any other command, except that it is implemented internally
>> in the git script.
>> The "git" command takes a subcommand that does some action or simply
>> prints some informational output.  The "version" subcommand fits
>> nicely into that, and I don't see any need to prepend "--" to it.
>>
>
> Consistency with other (non Git) commands was why I suggested the 
> "--version" form when the discussion happened.
You mean, like, "cvs version"?
Actually, cvs has both, with different semantics.
-- 
David Kågedal
A Large Angry SCM· Sep 15, 2005, 16:02 UTC · re: David Kågedal · lore

Re: git version

David Kågedal wrote:
Show 16 quoted lines
> A Large Angry SCM <gitzilla@gmail.com> writes:
> 
>>David Kågedal wrote:
>>>Why is "git --version" called so, and not "git version"?  It works
>>>just like any other command, except that it is implemented internally
>>>in the git script.
>>>The "git" command takes a subcommand that does some action or simply
>>>prints some informational output.  The "version" subcommand fits
>>>nicely into that, and I don't see any need to prepend "--" to it.
>>>
>>Consistency with other (non Git) commands was why I suggested the 
>>"--version" form when the discussion happened.
> 
> You mean, like, "cvs version"?
> 
> Actually, cvs has both, with different semantics.
More along the lines of *ALL* the GNU utilities.

← back to recent threads