1. 06 Nov, 2019 1 commit
    • Wang Guan's avatar
      Add an option about git submodules to ignore · 7cc3a32b
      Wang Guan authored
      $GIT_STATUS_IGNORE_SUBMODULES can be used to specify handling of
      submodules. It can be:
      not set : ignore dirty submodules (this was default zsh behavior)
      "git"   : do not use "--ignore-submodules" and let git choose,
                this obeys setting in .gitmodules
      other   : comes into "--ignore-submodules=$GIT_STATUS_IGNORE_SUBMODULES"
      7cc3a32b
  2. 09 Apr, 2019 1 commit
  3. 08 Sep, 2018 1 commit
  4. 15 Apr, 2018 1 commit
  5. 23 Jan, 2018 1 commit
  6. 14 Nov, 2017 1 commit
  7. 07 Sep, 2016 1 commit
  8. 05 Sep, 2016 1 commit
  9. 01 Aug, 2016 1 commit
    • Steven's avatar
      Updated git_commits_ahead function (#5247) · 61981951
      Steven authored
      * 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
  10. 15 Jul, 2016 1 commit
  11. 31 Mar, 2016 1 commit
  12. 13 Jan, 2016 1 commit
  13. 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
  14. 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
  15. 23 Sep, 2015 2 commits
  16. 15 Jun, 2015 1 commit
  17. 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
  18. 19 Nov, 2014 1 commit
  19. 16 Nov, 2014 1 commit
  20. 03 Jul, 2014 2 commits
  21. 28 Jun, 2014 2 commits
  22. 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
  23. 26 May, 2014 1 commit
  24. 25 May, 2014 2 commits
  25. 06 Dec, 2013 1 commit
  26. 20 Nov, 2013 1 commit
  27. 12 Jun, 2013 1 commit
  28. 19 May, 2013 1 commit
  29. 22 Apr, 2013 1 commit
  30. 21 Apr, 2013 1 commit
  31. 04 Apr, 2013 1 commit
  32. 13 Mar, 2013 1 commit
  33. 11 Mar, 2013 1 commit
  34. 19 Feb, 2013 1 commit
  35. 13 Feb, 2013 1 commit