Update the bash prompt from 'applied' instead of the obsolete 'current'
authorRobin Rosenberg <robin.rosenberg@dewire.com>
Mon, 21 May 2007 20:58:39 +0000 (21:58 +0100)
committerCatalin Marinas <catalin.marinas@gmail.com>
Mon, 21 May 2007 20:59:30 +0000 (21:59 +0100)
commit330c6aff37039f746215d9e293a282dc87e7f080
tree3c89bcd2ebb6cd417c46fe4ca3e6689aec98cc22
parent27ac2b7eee3cc39e29c470cd5b5889e93091d9be
Update the bash prompt from 'applied' instead of the obsolete 'current'

Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com>
söndag 20 maj 2007 skrev Yann Dirson:
> Note that "tail -1" gives a warning with newer versions, "tail -n 1"
> should be the proper call.
My man page doesn't mention -N being deprecated, but ok since -n 1 seems
to work here too.

> Also I'm not sure it is a good way to look at "applied" file, since
> Karl IIRC has plans to change this.  Better call "stg top" and not
> touch that again :)

Calling stg is too slow to be be used here. I that command in my first draft
for this function and people complained (see the thread named "Bash snippet
to show branch and patch in bash prompt"). It takes ~ 0.15s on here which is
very noticable, barely below my pain threshold.

We'll update the prompt when and if Karl breaks this.

It'd probably drain my battery too :/

-- robin

 contrib/stgbashprompt.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
contrib/stgbashprompt.sh