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

Re: Git's inconsistent command line options

From
Jacob Keller <jacob.keller@gmail.com>
Date
Aug 26, 2015, 23:03 UTC
Message-ID
<CA+P7+xrzU=n65sVkHH9O5v7QjC=vKkQDQy5u4XVby19T9O98Pw@mail.gmail.com>
In-Reply-To
<CA+P7+xqYMHfMuBKtGK_p8mwbLjEJWN80i1oDyCdJ_0iVZPmhaQ@mail.gmail.com>
On Wed, Aug 26, 2015 at 4:02 PM, Jacob Keller <jacob.keller@gmail.com> wrote:
Show 37 quoted lines
> On Wed, Aug 26, 2015 at 3:52 PM, Philip Oakley <philipoakley@iee.org> wrote:
>> From: "Jacob Keller" <jacob.keller@gmail.com>
>>>
>>> On Wed, Aug 26, 2015 at 10:56 AM, Junio C Hamano <gitster@pobox.com>
>>> wrote:
>>>>
>>>> But notice that I said "if you really want to".  I personally think
>>>> it is a road to madness.
>>>
>>>
>>> Agreed. I don't believe in command line API here. I think we'd need a
>>> better solution.
>>>
>>> My gut says: Live with the warts on old commands and try to make
>>> people use command words for new commands.
>>> --
>>
>> Agreed. However Graeme's original question also said "I can supply a more
>> extensive list if needed", and "I still have to reference the help to remind
>> me of what parameter to use in certain situation", which suggests that one
>> option is to capture that list within some part of the documentation,
>> especially if Graeme already has an easy to read layout.
>>
>> If it could be part of the documenation, where should it go - gitcli or
>> perhaps it's own guide (`git help -g` and friends)?
>>
>
> I hope to spend some time investigating this in the near future.
> Personally I feel that command names make more sense than options
> since they are essentially non-options, and it helps separate
> logically related but non-equivalent operations more easily.
>
> The confusion that results from git-checkout, and git-branch has
> caught more than a few new people at $dayjob.
>
> Regards,
> Jake

That being said, use of "--create" or so forth really isn't that bothersome so maybe the gains outway the cons here.

Regards, Jake

Previous: Jacob KellerNext: Jacob Keller
Message 13 of 25 in “Git's inconsistent command line options”
  1. Graeme GeldenhuysAug 25, 2015
  2. Junio C HamanoAug 25, 2015
  3. Jacob KellerAug 25, 2015
  4. Stefan BellerAug 25, 2015
  5. Jacob KellerAug 25, 2015
  6. Junio C HamanoAug 25, 2015
  7. Hilco WijbengaAug 26, 2015
  8. Junio C HamanoAug 26, 2015
  9. Jacob KellerAug 26, 2015
  10. Junio C HamanoAug 26, 2015
  11. Philip OakleyAug 26, 2015
  12. Jacob KellerAug 26, 2015
  13. Jacob KellerAug 26, 2015
  14. Jacob KellerAug 26, 2015
  15. Andreas SchwabAug 26, 2015
  16. Jacob KellerAug 26, 2015
  17. Duy NguyenAug 31, 2015
  18. Barry WarsawAug 31, 2015
  19. David AguilarSep 1, 2015
  20. Barry WarsawSep 1, 2015
  21. Junio C HamanoSep 1, 2015
  22. Barry WarsawSep 1, 2015
  23. Stefan BellerSep 1, 2015
  24. Michael J GruberSep 9, 2015
  25. Michael J GruberSep 9, 2015

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.