Age | Commit message (Collapse) | Author |
|
(#5388)
|
|
This fixes old git_commits_ahead behavior and changes git_commits_behind
to have the same behavior.
Fixes #5355
|
|
* 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
|
|
* Added git_commits_behind function
* Added 'command' to git_commits_behind function
* git_commits_behind code review changes
|
|
|
|
Re-added $ZSH_THEME_GIT_PROMPT_EQUAL_REMOTE variable which was removed in 9f55213
|
|
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.
|
|
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.
|
|
|
|
Uniform git prompt equal remote to all others prompts, setting the correct symbol
(if applicable) to $git_remote_status, instead of echoing it.
It also solves the problem pointed out in #3911
|
|
ahead and diverged remote, I added ZSH_THEME_GIT_PROMPT_EQUAL_REMOTE.
|
|
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.
|
|
you are ahead or behind
|
|
ignore any grep aliases that might be defined
|
|
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
|
|
|
|
|
|
Renaming config for parse_git_dirty() to avoid collision
|
|
removed a hardcoded 'origin' in git.zsh and added new function for number of commits ahead of remote
|
|
|
|
|
|
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.
|
|
Signed-off-by: Mikhail S. Pobolovets <styx.mp@gmail.com>
|
|
before, 128 was returned, which could display an error,
but out of a git repo this should exit silently
fixes #2226
|
|
|
|
|
|
upstream branch since git 1.7.0
|
|
renaming in order to distinguish
|
|
repo basis
|
|
|
|
|
|
|
|
git: fix parse_git_dirty()
|
|
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.
|
|
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>
|
|
parse_git_dirty() support for Git 1.6
|
|
The grep expression was incorrect for normal grep. Adding
the `-E` option fixed the escaping of the question marks.
|
|
Fix some problems with git enabled prompts where they *always* claim to have untracked files
|
|
the time
|
|
parsing against both git 1.6 and git 1.7+
|
|
|
|
# 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
|
|
|
|
|
|
|
|
Add option to disable status notification
|
|
|
|
Add branch status support to git_prompt_status
|
|
prompt git-rm as deleted
|
|
Make git use sha when branch name is missing.
|