1. 08 9月, 2016 1 次提交
  2. 05 9月, 2016 1 次提交
  3. 01 8月, 2016 1 次提交
    • S
      Updated git_commits_ahead function (#5247) · 61981951
      Steven 提交于
      * Function wasn't returning correct value
      * Updated underlying git command
      * Kept echo command from previous function for backwards compatibility
      * Kept function consistent with git_commits_behind
      61981951
  4. 15 7月, 2016 1 次提交
  5. 01 4月, 2016 1 次提交
  6. 13 1月, 2016 1 次提交
  7. 18 12月, 2015 1 次提交
    • M
      Put `local var` declaration in its own line in lib/git.zsh · 08423849
      Marc Cornellà 提交于
      In places, the local statement will override the exit code and the written
      command won't have the effect intended when it was written.
      
      For example, when it's not inside a git repo the exit code won't be true,
      but the local statement will make it true regardless. See #4708.
      08423849
  8. 15 12月, 2015 1 次提交
    • A
      Move current_branch() from git plugin to core lib/git.zsh · 9f552130
      Andrew Janke 提交于
      Fixes #4085: core -> plugin dependency issue.
      Rename it to git_current_branch for clarity that it's git-specific.
      Update all plugins that were calling it to use new name.
      Fix variable leaks by making more variables in lib/git.zsh local.
      Have lib/git.zsh use [[ ]] instead of [ ] everywhere.
      9f552130
  9. 23 9月, 2015 2 次提交
  10. 15 6月, 2015 1 次提交
  11. 10 6月, 2015 2 次提交
    • A
      Add git_prompt_behind and git_prompt_exists · 2d40cc0b
      Adam Lindberg 提交于
      This adds two new theme functions for git:
      * `git_prompt_behind` works in a identical fashion to `git_prompt_ahead`
        and will output a format variable (`ZSH_THEME_GIT_PROMPT_BEHIND`) if
        the branch is behind.
      * `git_prompt_remote` will output one format variable if the branch
        exists on remote (`ZSH_THEME_GIT_PROMPT_REMOTE_EXISTS`), and another
        if the branch is unpublished (`ZSH_THEME_GIT_PROMPT_REMOTE_MISSING`).
      
      The old `git_prompt_ahead` has been changed. Using git log is subject
      to formatting in .gitconfig, which can be overridden and will break
      this function. Relying on rev-list is much more stable.
      2d40cc0b
    • L
  12. 20 11月, 2014 1 次提交
  13. 16 11月, 2014 1 次提交
  14. 03 7月, 2014 2 次提交
  15. 28 6月, 2014 2 次提交
  16. 10 6月, 2014 1 次提交
    • N
      return 0 when not a git repo · 7fbbf28e
      ncanceill 提交于
      before, 128 was returned, which could display an error,
      but out of a git repo this should exit silently
      fixes #2226
      7fbbf28e
  17. 26 5月, 2014 1 次提交
  18. 25 5月, 2014 2 次提交
  19. 07 12月, 2013 1 次提交
  20. 21 11月, 2013 1 次提交
  21. 13 6月, 2013 1 次提交
  22. 20 5月, 2013 1 次提交
  23. 22 4月, 2013 1 次提交
  24. 21 4月, 2013 1 次提交
  25. 04 4月, 2013 1 次提交
  26. 14 3月, 2013 1 次提交
  27. 12 3月, 2013 1 次提交
  28. 20 2月, 2013 1 次提交
  29. 14 2月, 2013 1 次提交
  30. 13 2月, 2013 1 次提交
  31. 30 1月, 2013 1 次提交
  32. 27 1月, 2013 1 次提交
  33. 07 12月, 2012 1 次提交
  34. 01 8月, 2012 1 次提交
  35. 30 7月, 2012 1 次提交
    • C
      Add branch status support to git_prompt_status · a3c2a2f6
      Caio Romão 提交于
      This patch makes git_prompt_status support three new status variables:
      
       - ZSH_THEME_GIT_PROMPT_AHEAD
       - ZSH_THEME_GIT_PROMPT_BEHIND
       - ZSH_THEME_GIT_PROMPT_DIVERGED
      
      With these extra variables it's easy to see (1) if you have commits in
      your local branch that weren't pushed to the remote (AHEAD), (2) if
      there are commits in the remote that you haven't merged/rebased yet
      (BEHIND) or (3) if you have local unpushed commits AND the remote has
      some commits you haven't merged yet (DIVERGED).
      
      Refer to the first line displayed on `git status -b --porcelain`.
      
      An example setup in a .zsh-theme file would be:
      
      ZSH_THEME_GIT_PROMPT_AHEAD="↑"
      ZSH_THEME_GIT_PROMPT_BEHIND="↓"
      ZSH_THEME_GIT_PROMPT_DIVERGED=""
      a3c2a2f6