From: Junio C Hamano Date: Thu, 23 Dec 2010 22:32:23 GMT Subject: Re: Dangerous "git am --abort" behavior Message-ID: <7vtyi415oo.fsf@alter.siamese.dyndns.org> In-Reply-To: "Steven E. Harris" writes: > Adam Monsen writes: > >> That's a good way to keep tabs on whether you're in the middle of a >> rebase or am (as well as many other statuses). > > How so? How are you using it for this purpose? There is this gem in the completion script: # 3) Consider changing your PS1 to also show the current branch: # PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ ' With this, you will see something like: [junio@alter git.git (master|AM)]$ as your prompt while you are working to fix corrupt patch you tried but failed to apply.