Merge pull request #655 from edubxb/fix-git-status
Fix an error when showing the status of a git repopull/657/head
commit
ae33b5ccaa
|
|
@ -94,6 +94,11 @@ function scm_prompt_info {
|
||||||
|
|
||||||
function git_status_summary {
|
function git_status_summary {
|
||||||
awk '
|
awk '
|
||||||
|
BEGIN {
|
||||||
|
untracked=0;
|
||||||
|
unstaged=0;
|
||||||
|
staged=0;
|
||||||
|
}
|
||||||
{
|
{
|
||||||
if (!after_first && $0 ~ /^##.+/) {
|
if (!after_first && $0 ~ /^##.+/) {
|
||||||
print $0
|
print $0
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue