|
| 1 | +1.10.3: |
| 2 | +======= |
| 3 | + |
| 4 | + This release can help improving performance in some situations, if the |
| 5 | + repository you work with is located on a network share. |
| 6 | + |
| 7 | + To fix possible performance issues make sure not to use one of the following |
| 8 | + variables in the `status_bar_text` setting: |
| 9 | + |
| 10 | + - {{remote}} |
| 11 | + - {{ahead}} |
| 12 | + - {{behind}} |
| 13 | + - {{added_files}} |
| 14 | + - {{deleted_files}} |
| 15 | + - {{modified_files}} |
| 16 | + - {{staged_files}} |
| 17 | + |
| 18 | + By avoiding those variables, GitGutter no longer calls `git status -b -s -u` |
| 19 | + but only `git rev-parse --abbrev-ref HEAD` to read the branch name which |
| 20 | + is much faster. |
| 21 | + |
| 22 | + The following examples shows a status_bar_text template, which the expensive |
| 23 | + line was removed from. |
| 24 | + |
| 25 | + "{% if added_files + deleted_files + modified_files > 0 %}*{% endif %}, ", |
| 26 | + |
| 27 | + Example: |
| 28 | + |
| 29 | + "status_bar_text": [ |
| 30 | + "{% if repo and branch %}", |
| 31 | + "{% if not st_git_status %}", |
| 32 | + "{{repo}}/{{branch}}", |
| 33 | + |
| 34 | + "{% endif %}", |
| 35 | + "{% if compare not in ('HEAD', branch, None) %}Comparing against {{compare}}, {% endif %}", |
| 36 | + "{% if state %}File is {{state}}{% endif %}", |
| 37 | + "{% if deleted > 0 %}, {{deleted}}-{% endif %}", |
| 38 | + "{% if inserted > 0 %}, {{inserted}}+{% endif %}", |
| 39 | + "{% if modified > 0 %}, {{modified}}≠{% endif %}", |
| 40 | + "{% if line_author and line_author_age %}, ⟢ {{line_author}} ({{line_author_age}}){% endif %}", |
| 41 | + "{% endif %}" |
| 42 | + ] |
| 43 | + |
| 44 | + --------------------------------------------------------------------------- |
| 45 | + |
| 46 | + C H A N G E L O G |
| 47 | + |
| 48 | + Enhancement: |
| 49 | + - Read branch statistics on demand (#458) |
| 50 | + |
| 51 | + |
| 52 | +💛 Git Gutter? Want to support development? |
| 53 | + |
| 54 | +I've teamed up with Wes Bos to offer the following discounts: |
| 55 | + |
| 56 | ++------------------------------------------------+ |
| 57 | +| | |
| 58 | +| Use the coupon code GITGUTTER for $10 off | |
| 59 | +| | |
| 60 | ++------------------------------------------------+ |
| 61 | + |
| 62 | +🏅 ⭐ ES6 ⭐ |
| 63 | + |
| 64 | +👉 ES6.io/friend/GITGUTTER |
| 65 | + |
| 66 | +🏅 ⭐ Sublime Text Book ⭐ |
| 67 | + |
| 68 | +👉 SublimeTextBook.com/friend/GITGUTTER |
| 69 | + |
| 70 | +🏅 ⭐ React For Beginners ⭐ |
| 71 | + |
| 72 | +👉 ReactForBeginners.com/friend/GITGUTTER |
| 73 | + |
| 74 | + |
| 75 | +Join 15,000 other developers already learning with Wes Bos. |
| 76 | + |
| 77 | +These are fantastic resources - 100% money back guarantee! 🌟 |
0 commit comments