• # Support Git

    Posté par . En réponse à la dépêche LiquidPrompt version 1.3. Évalué à 2.

    Est-ce que quelqu'un sait s'il est possible d'avoir les informations de décalage par rapport à l'upstream ?
    Dans git-completion.bash (qui fait bash et zsh), j'ai cette information via GIT_PS1_SHOWUPSTREAM (verbose).
    Merci.

    # If you would like to see the difference between HEAD and its
    # upstream, set GIT_PS1_SHOWUPSTREAM="auto". A "<" indicates
    # you are behind, ">" indicates you are ahead, and "<>"
    # indicates you have diverged. You can further control
    # behaviour by setting GIT_PS1_SHOWUPSTREAM to a space-separated
    # list of values:
    # verbose show number of commits ahead/behind (+/-) upstream
    # legacy don't use the '--count' option available in recent
    # versions of git-rev-list
    # git always compare HEAD to @{upstream}
    # svn always compare HEAD to your SVN upstream
    # By default, __git_ps1 will compare HEAD to your SVN upstream
    # if it can find one, or @{upstream} otherwise. Once you have
    # set GIT_PS1_SHOWUPSTREAM, you can override it on a
    # per-repository basis by setting the bash.showUpstream config
    # variable.