Re: [PATCH] git-prompt.sh: make '+' work for unborn branches

2014-03-06 Thread Maurice Bos
put. It seemed to work fine, but it's a bit stupid that it lists all the files when it could stop almost directly. An --extremly-short-porcelain-or-whatever-you-would-call-this option that would just output whether any file is dirty and/or indexed or something might be useful, though maybe a b

[PATCH] git-prompt.sh: make '+' work for unborn branches

2014-03-05 Thread Maurice Bos
For unborn branches, it now compares the index against the empty tree. (Just like git status does.) Signed-off-by: Maurice Bos --- contrib/completion/git-prompt.sh | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/contrib/completion/git-prompt.sh b/contrib