{"thread":{"id":"25205","subject":"recursive aliases","startedAt":"2010-09-23T06:07:01Z","lastAt":"2010-09-23T22:49:45Z","messageCount":3,"participants":["Ramana Kumar","Andreas Ericsson","Andreas Schwab"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"151343","messageId":"AANLkTi=VDmyhUDYKc38bOZWLncZ_twQGB2n5KgbgP_tf@mail.gmail.com","threadId":"25205","inReplyTo":null,"subject":"recursive aliases","fromName":"Ramana Kumar","fromEmail":"ramana.kumar@gmail.com","sentAt":"2010-09-23T06:07:01Z","receivedAt":"2010-09-23T06:07:01Z","isPatch":false,"sender":{"key":"ramana.kumar@gmail.com","avatar":"https://gravatar.com/avatar/c1e354b4b3844c33709698d3c6491eb791f04384343001b78b4816b6ba3fa8a9?d=mp&s=160"},"body":"Are recursive aliases in any way allowed?\nWhat about aliases that don't refer to themselves, but refer to other aliases?\n\nObviously I can just call git from the shell with a ! alias, but\nwondering if there's any better way.\n"},{"id":"151354","messageId":"4C9B3B2A.2080604@op5.se","threadId":"25205","inReplyTo":"AANLkTi=VDmyhUDYKc38bOZWLncZ_twQGB2n5KgbgP_tf@mail.gmail.com","subject":"Re: recursive aliases","fromName":"Andreas Ericsson","fromEmail":"ae@op5.se","sentAt":"2010-09-23T11:34:02Z","receivedAt":"2010-09-23T11:34:02Z","isPatch":false,"sender":{"key":"ae@op5.se","avatar":"https://gravatar.com/avatar/426e89595c75a8f5252dd0c989e5fabe5bcac616e68557427ad9aef6b0ca342a?d=mp&s=160"},"body":"On 09/23/2010 08:07 AM, Ramana Kumar wrote:\n> Are recursive aliases in any way allowed?\n\nThey're not just not allowed; they're not even possible.\n\n> What about aliases that don't refer to themselves, but refer to other aliases?\n> \n\nAgain, this isn't possible. How could you configure something like that?\n\n> Obviously I can just call git from the shell with a ! alias, but\n> wondering if there's any better way.\n\nThere isn't. The simple aliases are there to let you run certain\ncommands with certain default parameters as a new command. Normal\ncommands have no way of calling other commands (or themselves)\nrecursively. That's what shell-scripts are for.\n\n-- \nAndreas Ericsson                   andreas.ericsson@op5.se\nOP5 AB                             www.op5.se\nTel: +46 8-230225                  Fax: +46 8-230231\n\nConsidering the successes of the wars on alcohol, poverty, drugs and\nterror, I think we should give some serious thought to declaring war\non peace.\n"},{"id":"151412","messageId":"m239t0gjna.fsf@igel.home","threadId":"25205","inReplyTo":"4C9B3B2A.2080604@op5.se","subject":"Re: recursive aliases","fromName":"Andreas Schwab","fromEmail":"schwab@linux-m68k.org","sentAt":"2010-09-23T22:49:45Z","receivedAt":"2010-09-23T22:49:45Z","isPatch":false,"sender":{"key":"schwab@linux-m68k.org","avatar":"https://avatars.githubusercontent.com/u/2175493?v=4"},"body":"Andreas Ericsson <ae@op5.se> writes:\n\n> On 09/23/2010 08:07 AM, Ramana Kumar wrote:\n>> Are recursive aliases in any way allowed?\n>\n> They're not just not allowed; they're not even possible.\n\n$ git config alias.foo foo\n$ git foo\nfatal: recursive alias: foo\n\n:-)\n\nAndreas.\n\n-- \nAndreas Schwab, schwab@linux-m68k.org\nGPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5\n\"And now for something completely different.\"\n"}]}