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

Re: git alias for options

From
Jeff King <peff@peff.net>
Date
Feb 17, 2017, 22:13 UTC
Message-ID
<20170217221317.e5kby2jwutdznnlk@sigill.intra.peff.net>
In-Reply-To
<CACBZZX7nJkRmSxTdvhgXz5Zuk0KeovSZM1D_eGqbBn7i20+ePQ@mail.gmail.com>
On Fri, Feb 17, 2017 at 11:10:08PM +0100, Ævar Arnfjörð Bjarmason wrote:
Show 13 quoted lines
> > A first step in that direction would probably be an environment variable
> > to tell Git to suppress command-aliases. Scripts would set that to
> > ensure a more vanilla experience. It doesn't fix _existing_ scripts, but
> > if that option were introduced, then over time scripts would start to
> > use it. Then eventually it would be safe(r) to introduce something like
> > command aliases.
> 
> The most gentle first step would be to try to turn the existing config
> options where you can override cli-options into some declarative thing
> from the current ad-hoc code we have for each one.
> 
> That would be no change in behavior, but would make it easier to
> migrate more things in the future.

Yeah, I'd agree with that. It does not change anything for the users, but it makes the implementation less annoying.

-Peff
Previous: Ævar Arnfjörð BjarmasonNext: Junio C Hamano
Message 6 of 9 in “git alias for options”
  1. hIpPyFeb 17, 2017
  2. Michael J GruberFeb 17, 2017
  3. Ævar Arnfjörð BjarmasonFeb 17, 2017
  4. Jeff KingFeb 17, 2017
  5. Ævar Arnfjörð BjarmasonFeb 17, 2017
  6. Jeff KingFeb 17, 2017
  7. Junio C HamanoFeb 17, 2017
  8. hIpPyFeb 17, 2017
  9. Jeff KingFeb 18, 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.