{"thread":{"id":"45857","subject":"Bug report: Git Stash; spelling mistake of stash followed by a yes prints character 'y' infinite times.","startedAt":"2017-05-03T09:46:12Z","lastAt":"2017-05-04T05:23:40Z","messageCount":3,"participants":["Rashmi Pai","Jeff King","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"318613","messageId":"CAOqCAXTN6_dR=+As_i6yxOL+A3dOzs4bM5Lzbj6qzyT_3ecRcw@mail.gmail.com","threadId":"45857","inReplyTo":null,"subject":"Bug report: Git Stash; spelling mistake of stash followed by a yes prints character 'y' infinite times.","fromName":"Rashmi Pai","fromEmail":"rashmipai36@gmail.com","sentAt":"2017-05-03T09:46:06Z","receivedAt":"2017-05-03T09:46:12Z","isPatch":false,"sender":{"key":"rashmipai36@gmail.com","avatar":null},"body":"Hi,\nI am a corporate user of git. I noticed that when you switch between\nthe branches and do a git stash ( I miss spelled it as git stahs). Git\nasked if i meant git stash. and i entered yes. and git printed the\ncharacter y infinite times.\n\nBelow are the steps to reproduce.\n1. create a local branch and make some code changes in the same branch.\n2. now checkout another branch. git says Your local changes to the\nfollowing files would be overwritten by checkout.\n3. Now do git stahs ( spelling mistake )\n4. Now git says git: 'stahs' is not a git command. See 'git --help'.\n\nDid you mean this?\n\nstash\n\n5. Now types yes. and you will see character 'y' getting printed\ninfinite times!.\n\nThough this is not a major bug, I thought notifying this would be a\ngood idea. The above mentioned issue is reproducible in Mac Yosemite\nin git version 2.4.5\n\nThank you all for making our lives easier and better :)..\n\n-- \nREGARDS\nRashmi Pai :)\n"},{"id":"318615","messageId":"20170503094709.rn252pina4vdm6lv@sigill.intra.peff.net","threadId":"45857","inReplyTo":"CAOqCAXTN6_dR=+As_i6yxOL+A3dOzs4bM5Lzbj6qzyT_3ecRcw@mail.gmail.com","subject":"Re: Bug report: Git Stash; spelling mistake of stash followed by a yes prints character 'y' infinite times.","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2017-05-03T09:47:09Z","receivedAt":"2017-05-03T09:47:18Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Wed, May 03, 2017 at 03:16:06PM +0530, Rashmi Pai wrote:\n\n> Below are the steps to reproduce.\n> 1. create a local branch and make some code changes in the same branch.\n> 2. now checkout another branch. git says Your local changes to the\n> following files would be overwritten by checkout.\n> 3. Now do git stahs ( spelling mistake )\n> 4. Now git says git: 'stahs' is not a git command. See 'git --help'.\n> \n> Did you mean this?\n> \n> stash\n\nAfter this step git exits, and you're back at your shell prompt...\n\n> 5. Now types yes. and you will see character 'y' getting printed\n> infinite times!.\n\n...so when you type \"yes\" here, it is running the \"yes\" program. Whose\nfunction is to print an infinite number of y's. See \"man yes\" for more\ndetails.\n\n-Peff\n"},{"id":"318724","messageId":"xmqqlgqd9ovg.fsf@gitster.mtv.corp.google.com","threadId":"45857","inReplyTo":"20170503094709.rn252pina4vdm6lv@sigill.intra.peff.net","subject":"Re: Bug report: Git Stash; spelling mistake of stash followed by a yes prints character 'y' infinite times.","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2017-05-04T05:23:31Z","receivedAt":"2017-05-04T05:23:40Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Jeff King <peff@peff.net> writes:\n\n>> 4. Now git says git: 'stahs' is not a git command. See 'git --help'.\n>> \n>> Did you mean this?\n>> \n>> stash\n>\n> After this step git exits, and you're back at your shell prompt...\n\nPerhaps the suggestion message should be rephrased not to sound like\nit is asking confirmation?\n"}]}