# git version

4 messages from 2005-09-15 to 2005-09-15. Participants: David Kågedal, A Large Angry SCM.
Thread: https://gitlist.dev/t/1809

## David Kågedal, 2005-09-15 13:47

Subject: git version
Message-ID: <u5tzmqeqw6z.fsf@lysator.liu.se>
URL: https://gitlist.dev/e/u5tzmqeqw6z.fsf%40lysator.liu.se

```
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, 2005-09-15 14:31

Subject: Re: git version
Message-ID: <432985A7.5070900@gmail.com>
URL: https://gitlist.dev/e/432985A7.5070900%40gmail.com
In-Reply-To: <u5tzmqeqw6z.fsf@lysator.liu.se>

```
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.

```

## David Kågedal, 2005-09-15 15:22

Subject: Re: git version
Message-ID: <u5tslw6qrtu.fsf@lysator.liu.se>
URL: https://gitlist.dev/e/u5tslw6qrtu.fsf%40lysator.liu.se
In-Reply-To: <432985A7.5070900@gmail.com>

```
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.

-- 
David Kågedal

```

## A Large Angry SCM, 2005-09-15 16:02

Subject: Re: git version
Message-ID: <43299B1E.1050407@gmail.com>
URL: https://gitlist.dev/e/43299B1E.1050407%40gmail.com
In-Reply-To: <u5tslw6qrtu.fsf@lysator.liu.se>

```
David Kågedal wrote:
> 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.

```
