Files
ohmyzsh/themes
Brian Degenhardt b875df8970 agnoster: speed up git prompt
Problem

On detached-refs, the git prompt is very slow because it uses a command
to output all refs, which takes 32s on the twitter internal git repo.

Solution

Use git-rev-parse instead of git-show-ref to only output the head ref.
Runtime drops to 0.03 seconds.

Note

Interestingly, git-rev-parse isn't slow without the --head arguement so
I'll probably be cooking up a patch for the git team to speed this up
eventually, but it's still pointless to sigpipe git as it walks the
filesystem.
2015-07-27 14:19:23 -07:00
..
2012-08-14 12:23:11 -03:00
2013-11-29 12:28:52 +05:30
2012-12-28 18:04:15 -02:00
2011-07-12 23:20:21 -04:00
2011-10-17 02:50:34 +05:30
2011-05-30 19:10:26 -04:00
2012-03-07 23:52:51 +08:00
2013-03-30 16:01:31 +01:00
2010-05-08 04:20:59 +08:00
2011-06-01 12:45:15 +02:00
2012-11-20 00:33:52 +00:00
2012-02-20 19:13:38 -05:00
2013-04-24 06:50:48 -07:00
2011-05-20 15:14:10 +02:00
2014-06-08 10:43:26 +02:00