Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-06-10 | Add git_prompt_behind and git_prompt_exists | 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. | |||
2015-06-10 | Added a possibility to display the remote branch and the number of commits ↵ | leif.hanack | |
you are ahead or behind | |||
2014-12-14 | Merge pull request #3326 from DanielFGray/master | Robby Russell | |
ignore any grep aliases that might be defined | |||
2014-11-19 | Switch back to oh-my-zsh.hide-dirty setting again | Marc Cornellà | |
Commit 81004dfaba509ff62a13ba303ab941938d619326 reverted the change in 9b811fb625c03c30a766191cdf65a1c7c1fd96b2 when editing the merge conflict from #2928. This commit fixes that so that we don't make the same mistake again. First seen in http://git.io/Cdaj5Q | |||
2014-11-16 | ignore any grep aliases that might be defined | DanielFGray | |
2014-11-06 | 2928 merge conflict | Robby Russell | |
2014-11-06 | Merge pull request #2323 from michaelorr/slow-git-fix | Robby Russell | |
Renaming config for parse_git_dirty() to avoid collision | |||
2014-07-15 | Merge pull request #2828 from r3dDoX/master | Robby Russell | |
removed a hardcoded 'origin' in git.zsh and added new function for number of commits ahead of remote | |||
2014-07-03 | Fix POST_1_7_2_GIT check for parse_git_dirty submodules. | Simon Buchan | |
2014-07-03 | Fix parse_git_dirty() when status.branch is set. | Simon Buchan | |
2014-06-28 | git_prompt_info: ignore git-config errors | Albert Krewinkel | |
Merged from #2906 The function `git_prompt_info` calls `git config` for its stdout output, but doesn't handle the stderr output. This can lead to problems, e.g. if the git config file is unreadable for some reason (permissions etc). This fixes the issue by simply ignoring the stderr output. | |||
2014-06-28 | Add missing `command` wrapper for git | Mikhail S. Pobolovets | |
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com> | |||
2014-06-10 | return 0 when not a git repo | ncanceill | |
before, 128 was returned, which could display an error, but out of a git repo this should exit silently fixes #2226 | |||
2014-05-26 | added prefix/suffix variable for customizability | r3dDoX | |
2014-05-25 | added new function to get number of commits ahead of remote | r3dDoX | |
2014-05-25 | replaced hardcoded origin/{branch-name} with @{upstream} which gets the ↵ | r3dDoX | |
upstream branch since git 1.7.0 | |||
2013-12-06 | accidentally blew away a git config setting used for another purpose, ↵ | Michael Orr | |
renaming in order to distinguish | |||
2013-11-20 | adding a check for git config option to disable git_prompt_info() on a per ↵ | Michael Orr | |
repo basis | |||
2013-06-12 | Fixed slow behavior when using GitHub wrappers | Theodore Kokkoris | |
2013-05-19 | Adding a fix for the DISABLE_UNTRACKED_FILES_DIRTY option. | Christopher Roach | |
2013-04-23 | Resolving conflict when merging in 1570 | Robby Russell | |
2013-04-23 | Merge pull request #1740 from felipec/fc/git | Robby Russell | |
git: fix parse_git_dirty() | |||
2013-04-22 | Added option to allow untracked files as non dirty | Jeremy Attali | |
In this commit, the option only works for git but it should not be to hard for someone who knows svn to so the same. This commit is largely inspired by @yoavweiss, I only added an option to use it. | |||
2013-04-21 | git: fix parse_git_dirty() | Felipe Contreras | |
If oh-my-zsh.hide-status is configured, the 'clean' code won't be generated, and some themes might end up distorted. Let's generate the 'clean' code even when we don't want the show the dirty status. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> | |||
2013-04-07 | Merge pull request #1654 from bertag/parse-git-dirty-support-for-1.6 | Robby Russell | |
parse_git_dirty() support for Git 1.6 | |||
2013-04-03 | This fixes checking for git untracked items | Christian Höltje | |
The grep expression was incorrect for normal grep. Adding the `-E` option fixed the escaping of the question marks. | |||
2013-03-26 | Merge pull request #1661 from hellerbarde/master | Robby Russell | |
Fix some problems with git enabled prompts where they *always* claim to have untracked files | |||
2013-03-14 | fix git_prompt_status() to not say the repository has untracked files all ↵ | Philip Stark | |
the time | |||
2013-03-11 | Tweaked parse_git_dirty() in lib/git.zsh to support proper dirty/clean ↵ | bertag | |
parsing against both git 1.6 and git 1.7+ | |||
2013-02-19 | pipe git version check error to /dev/null (for when git doesn't exist) | Thomas Minor | |
2013-02-13 | Did a full circle and went back to # On branch master | Yoav Weiss | |
# Changes to be committed: # (use "git reset HEAD <file>..." to unstage) # # modified: git.zsh #, ignoring untracked files, which seems to be the primary cause for slowness | |||
2013-02-13 | Fixed dirty check to include files added to index | Yoav Weiss | |
2013-01-30 | Closer to original status command, using SUBMODULE SYNTAX | Yoav Weiss | |
2013-01-27 | Faster dirty git status check (using git diff) | Yoav Weiss | |
2013-01-10 | Merge pull request #1077 from Mezzle/add-option-to-show-git-status | Robby Russell | |
Add option to disable status notification | |||
2012-12-07 | Add Stash toogle to display if there's some stash or not in `git_prompt_status` | MAD | |
2012-12-04 | Merge pull request #1258 from caio/git-branch-status | Robby Russell | |
Add branch status support to git_prompt_status | |||
2012-12-04 | Merge pull request #875 from ttddyy/prompt_git-remove | Robby Russell | |
prompt git-rm as deleted | |||
2012-12-02 | Merge pull request #1263 from tedv/headless-git | Robby Russell | |
Make git use sha when branch name is missing. | |||
2012-07-31 | Make git use sha when branch name is missing. | Ted Vessenes | |
2012-07-29 | Add branch status support to git_prompt_status | 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="↕" | |||
2012-07-24 | Merge | James Smith | |
2012-04-18 | Add option to disable status notification | Martin Meredith | |
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 | |||
2012-02-21 | Fixed bug introduced when fixing issue 896 | cruser42 | |
2012-02-08 | fixed introduced to parse_git_dirty | Aleksey Orekhov | |
2012-02-08 | changed variable PRE_1_7_2_GIT to POST_1_7_2_GIT to make it more accurate | Aleksey Orekhov | |
2012-02-08 | fixed asterisk display for modified repos in git prior to 1.7.2 | Aleksey Orekhov | |
2012-01-26 | Removed trailing spaces in Git files. Fixes #867 | Carlos Rodriguez | |
2012-01-26 | prompt git-remove as deleted | Tadaya Tsuyukubo | |
2011-12-21 | Ignore submodules dirty in prompt info | julien@macbook | |