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

Re: Use "git pull --ff-only" by default?

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
May 22, 2010, 11:37 UTC
Message-ID
<4BF7C1EB.8040702@drmicha.warpmail.net>
In-Reply-To
<AANLkTilfD1jhDcyuK9zAthlW4vRU-15TmBgYlc16W0Ux@mail.gmail.com>
Jay Soffian venit, vidit, dixit 21.05.2010 21:13:
Show 8 quoted lines
> On Fri, May 21, 2010 at 11:18 AM, Michael J Gruber
> <git@drmicha.warpmail.net> wrote:
> 
>> git config alias.pull 'pull --ff-only'
> 
> That won't work. You cannot override built-in commands. Look at
> run.argv() in git.c and notice it doesn't process aliases unless
> handle_internal_command() and execv_dashed_external() fail.

I was sure it worked at some point. Maybe I'm just so used to my "ci" (read: check-in) alias for "commit" that being able to override that one (to "commit -s" for git.git) fooled my perception. Sorry!

Michael
Previous: Jay SoffianNext: Peter Kjellerstedt
Message 7 of 13 in “Use "git pull --ff-only" by default?”
  1. Peter KjellerstedtMay 21, 2010
  2. Ævar Arnfjörð BjarmasonMay 21, 2010
  3. Michael J GruberMay 21, 2010
  4. Peter KjellerstedtMay 21, 2010
  5. Michael J GruberMay 21, 2010
  6. Jay SoffianMay 21, 2010
  7. Michael J GruberMay 22, 2010
  8. Peter KjellerstedtMay 24, 2010
  9. Dmitry PotapovMay 24, 2010
  10. Peter KjellerstedtMay 25, 2010
  11. Dmitry PotapovMay 27, 2010
  12. Peter KreftingMay 21, 2010
  13. MonsignorApr 29, 2016

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.