* Bug report: Git Stash; spelling mistake of stash followed by a yes prints character 'y' infinite times.
@ 2017-05-03 9:21 Rashmi Pai
2017-05-06 17:18 ` Dennis Kaarsemaker
0 siblings, 1 reply; 5+ messages in thread
From: Rashmi Pai @ 2017-05-03 9:21 UTC (permalink / raw)
To: git
Hi,
I am a corporate user of git. I noticed that when you switch between
the branches and do a git stash ( I miss spelled it as git stahs). Git
asked if i meant git stash. and i entered yes. and git printed the
character y infinite times.
Below are the steps to reproduce.
1. create a local branch and make some code changes in the same branch.
2. now checkout another branch. git says Your local changes to the
following files would be overwritten by checkout.
3. Now do git stahs ( spelling mistake )
4. Now git says git: 'stahs' is not a git command. See 'git --help'.
Did you mean this?
stash
5. Now types yes. and you will see character 'y' getting printed
infinite times!.
Though this is not a major bug, I thought notifying this would be a
good idea. The above mentioned issue is reproducible in Mac Yosemite
in git version 2.4.5
Thank you all for making our lives easier and better :)..
--
REGARDS
Rashmi Pai :)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Bug report: Git Stash; spelling mistake of stash followed by a yes prints character 'y' infinite times.
@ 2017-05-03 9:46 Rashmi Pai
2017-05-03 9:47 ` Jeff King
0 siblings, 1 reply; 5+ messages in thread
From: Rashmi Pai @ 2017-05-03 9:46 UTC (permalink / raw)
To: git
Hi,
I am a corporate user of git. I noticed that when you switch between
the branches and do a git stash ( I miss spelled it as git stahs). Git
asked if i meant git stash. and i entered yes. and git printed the
character y infinite times.
Below are the steps to reproduce.
1. create a local branch and make some code changes in the same branch.
2. now checkout another branch. git says Your local changes to the
following files would be overwritten by checkout.
3. Now do git stahs ( spelling mistake )
4. Now git says git: 'stahs' is not a git command. See 'git --help'.
Did you mean this?
stash
5. Now types yes. and you will see character 'y' getting printed
infinite times!.
Though this is not a major bug, I thought notifying this would be a
good idea. The above mentioned issue is reproducible in Mac Yosemite
in git version 2.4.5
Thank you all for making our lives easier and better :)..
--
REGARDS
Rashmi Pai :)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug report: Git Stash; spelling mistake of stash followed by a yes prints character 'y' infinite times.
2017-05-03 9:46 Rashmi Pai
@ 2017-05-03 9:47 ` Jeff King
2017-05-04 5:23 ` Junio C Hamano
0 siblings, 1 reply; 5+ messages in thread
From: Jeff King @ 2017-05-03 9:47 UTC (permalink / raw)
To: Rashmi Pai; +Cc: git
On Wed, May 03, 2017 at 03:16:06PM +0530, Rashmi Pai wrote:
> Below are the steps to reproduce.
> 1. create a local branch and make some code changes in the same branch.
> 2. now checkout another branch. git says Your local changes to the
> following files would be overwritten by checkout.
> 3. Now do git stahs ( spelling mistake )
> 4. Now git says git: 'stahs' is not a git command. See 'git --help'.
>
> Did you mean this?
>
> stash
After this step git exits, and you're back at your shell prompt...
> 5. Now types yes. and you will see character 'y' getting printed
> infinite times!.
...so when you type "yes" here, it is running the "yes" program. Whose
function is to print an infinite number of y's. See "man yes" for more
details.
-Peff
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug report: Git Stash; spelling mistake of stash followed by a yes prints character 'y' infinite times.
2017-05-03 9:47 ` Jeff King
@ 2017-05-04 5:23 ` Junio C Hamano
0 siblings, 0 replies; 5+ messages in thread
From: Junio C Hamano @ 2017-05-04 5:23 UTC (permalink / raw)
To: Jeff King; +Cc: Rashmi Pai, git
Jeff King <peff@peff.net> writes:
>> 4. Now git says git: 'stahs' is not a git command. See 'git --help'.
>>
>> Did you mean this?
>>
>> stash
>
> After this step git exits, and you're back at your shell prompt...
Perhaps the suggestion message should be rephrased not to sound like
it is asking confirmation?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Bug report: Git Stash; spelling mistake of stash followed by a yes prints character 'y' infinite times.
2017-05-03 9:21 Bug report: Git Stash; spelling mistake of stash followed by a yes prints character 'y' infinite times Rashmi Pai
@ 2017-05-06 17:18 ` Dennis Kaarsemaker
0 siblings, 0 replies; 5+ messages in thread
From: Dennis Kaarsemaker @ 2017-05-06 17:18 UTC (permalink / raw)
To: Rashmi Pai, git
On Wed, 2017-05-03 at 14:51 +0530, Rashmi Pai wrote:
> I am a corporate user of git. I noticed that when you switch between
> the branches and do a git stash ( I miss spelled it as git stahs). Git
> asked if i meant git stash. and i entered yes. and git printed the
> character y infinite times.
Hi Rashmi,
While git asks the question 'Did you mean stash', that question is
merely rhetorical, it does not expect an answer but exits. So what
you're seeing is the output of the shell builting 'yes', not output
from git.
D.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-05-06 17:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-03 9:21 Bug report: Git Stash; spelling mistake of stash followed by a yes prints character 'y' infinite times Rashmi Pai
2017-05-06 17:18 ` Dennis Kaarsemaker
-- strict thread matches above, loose matches on Subject: below --
2017-05-03 9:46 Rashmi Pai
2017-05-03 9:47 ` Jeff King
2017-05-04 5:23 ` Junio C Hamano
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).