Re: Dangerous "git am --abort" behavior
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 23, 2010, 22:32 UTC
- Message-ID
- <7vtyi415oo.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <m2tyi45ell.fsf@Spindle.sehlabs.com>
"Steven E. Harris" <seh@panix.com> writes:
Show 6 quoted lines
> Adam Monsen <haircut@gmail.com> 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.