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

Re: Add configuration options for some commonly used command-line options

From
Duy Nguyen <pclouds@gmail.com>
Date
Mar 20, 2017, 10:42 UTC
Message-ID
<CACsJy8CxX_C8rOb3mZXHum-5w+aev=QR-r3DZ5Ad=zg8j2XxnQ@mail.gmail.com>
In-Reply-To
<20170319131845.tl6o3t2nwicj2rug@genre.crustytoothpaste.net>

On Sun, Mar 19, 2017 at 8:18 PM, brian m. carlson <sandals@crustytoothpaste.net> wrote:

Show 9 quoted lines
>> OTOH, we already have almost "enable such or such option by default"
>> with aliases. People who always run "git am" with "-3" can write
>>
>> [alias]
>>         a3 = am -3
>>
>> and just run "git a3".
>
> I tend to agree here.

That's exactly what I'm doing too. But I have an impression that the stream of new configuration for default cmdline options keeps coming in. And this, as a gsoc microproject, encourages more to come :-/

There's also another reason I suggested this but I don't know if it will work out yet. If we start to make parse_options() or similar to handle some configurations, we probably can gradually move away from the procedural callback-based config parsing to a more declarative style like 'struct option'. That opens up new opportunities: spotting config name typos, listing applicable variables of a command ....

-- 
Duy
Previous: brian m. carlson
Message 19 of 19 in “Add configuration options for some commonly used command-line options (Was: [RFH] GSoC 2015 application)”
  1. Duy NguyenMar 19, 2017
  2. Matthieu MoyMar 19, 2017
  3. brian m. carlsonMar 19, 2017
  4. Ævar Arnfjörð BjarmasonMar 19, 2017
  5. Duy NguyenMar 20, 2017
  6. Brandon WilliamsMar 20, 2017
  7. Jeff KingMar 20, 2017
  8. Brandon McCaigMar 31, 2017
  9. Junio C HamanoMar 20, 2017
  10. Jeff KingMar 20, 2017
  11. Ævar Arnfjörð BjarmasonMar 20, 2017
  12. parse-options: add facility to make options configurableÆvar Arnfjörð Bjarmason, Mar 24, 2017
  13. Ævar Arnfjörð BjarmasonMar 25, 2017
  14. Jeff KingMar 25, 2017
  15. Ævar Arnfjörð BjarmasonMar 25, 2017
  16. Jeff KingMar 28, 2017
  17. WIP configurable options facilityÆvar Arnfjörð Bjarmason, Mar 28, 2017
  18. brian m. carlsonMar 25, 2017
  19. Duy NguyenMar 20, 2017

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.