1. 17 Dec, 2015 1 commit
    • Marc Cornellà's avatar
      Put `local var` declaration in its own line in lib/git.zsh · 08423849
      Marc Cornellà authored
      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
  2. 15 Dec, 2015 1 commit
    • Andrew Janke's avatar
      Move current_branch() from git plugin to core lib/git.zsh · 9f552130
      Andrew Janke authored
      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
  3. 23 Sep, 2015 2 commits
  4. 15 Jun, 2015 1 commit
  5. 10 Jun, 2015 2 commits
    • Adam Lindberg's avatar
      Add git_prompt_behind and git_prompt_exists · 2d40cc0b
      Adam Lindberg authored
      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
    • leif.hanack's avatar
  6. 19 Nov, 2014 1 commit
  7. 16 Nov, 2014 1 commit
  8. 03 Jul, 2014 2 commits
  9. 28 Jun, 2014 2 commits
  10. 10 Jun, 2014 1 commit
    • ncanceill's avatar
      return 0 when not a git repo · 7fbbf28e
      ncanceill authored
      before, 128 was returned, which could display an error,
      but out of a git repo this should exit silently
      fixes #2226
      7fbbf28e
  11. 26 May, 2014 1 commit
  12. 25 May, 2014 2 commits
  13. 06 Dec, 2013 1 commit
  14. 20 Nov, 2013 1 commit
  15. 12 Jun, 2013 1 commit
  16. 19 May, 2013 1 commit
  17. 22 Apr, 2013 1 commit
  18. 21 Apr, 2013 1 commit
  19. 04 Apr, 2013 1 commit
  20. 13 Mar, 2013 1 commit
  21. 11 Mar, 2013 1 commit
  22. 19 Feb, 2013 1 commit
  23. 13 Feb, 2013 2 commits
  24. 30 Jan, 2013 1 commit
  25. 27 Jan, 2013 1 commit
  26. 07 Dec, 2012 1 commit
  27. 31 Jul, 2012 1 commit
  28. 29 Jul, 2012 1 commit
    • Caio Romão's avatar
      Add branch status support to git_prompt_status · a3c2a2f6
      Caio Romão authored
      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
  29. 18 Apr, 2012 1 commit
    • Martin Meredith's avatar
      Add option to disable status notification · 8ce35df2
      Martin Meredith authored
      For certain git repositories, this slows down usage
      of the shell horifically.
      
      This option can be set with
      
          git config --add oh-my-zsh.hide-status 1
      
      which will disable checking/showing the status notification
      8ce35df2
  30. 21 Feb, 2012 1 commit
  31. 08 Feb, 2012 3 commits
  32. 27 Jan, 2012 1 commit