summaryrefslogtreecommitdiff
path: root/themes/cloud.zsh-theme
diff options
context:
space:
mode:
authorBrian Degenhardt <bdegenhardt@twitter.com>2015-07-27 14:19:23 -0700
committerBrian Degenhardt <bdegenhardt@twitter.com>2015-07-27 14:19:23 -0700
commitb875df8970a67d02eef74f1aad0b60f42fedb356 (patch)
tree66463a5b8a1d268805aa06616b4a86216871d387 /themes/cloud.zsh-theme
parenta207a38d634cc10441636bc4359cd8a18c502dea (diff)
downloadzsh-b875df8970a67d02eef74f1aad0b60f42fedb356.tar.gz
zsh-b875df8970a67d02eef74f1aad0b60f42fedb356.tar.bz2
zsh-b875df8970a67d02eef74f1aad0b60f42fedb356.zip
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.
Diffstat (limited to 'themes/cloud.zsh-theme')
0 files changed, 0 insertions, 0 deletions