chiark
/
gitweb
/
~ian
/
topgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5b78a37
)
tg-summary.sh: Mark branches with missing dependencies by '\!'
author
Petr Baudis
<pasky@suse.cz>
Sun, 3 Aug 2008 18:00:25 +0000
(20:00 +0200)
committer
Petr Baudis
<pasky@suse.cz>
Sun, 3 Aug 2008 18:00:25 +0000
(20:00 +0200)
README
patch
|
blob
|
history
tg-summary.sh
patch
|
blob
|
history
diff --git
a/README
b/README
index 82d185f7681ea02c6cf47a6a8cf10777c211e109..36316fad1155f1da073a47a3b34bada12bbbb1b0 100644
(file)
--- a/
README
+++ b/
README
@@
-256,6
+256,7
@@
tg summary
Show overview of all TopGit-tracked topic branches and their
up-to-date status ('0' marks that it introduces no own changes,
'D' marks that it is out-of-date wrt. its dependencies,
Show overview of all TopGit-tracked topic branches and their
up-to-date status ('0' marks that it introduces no own changes,
'D' marks that it is out-of-date wrt. its dependencies,
+ '!' marks that it has missing dependencies (even recursively),
'B' marks that it is out-of-date wrt. its base).
TODO: Speed up by an order of magnitude
'B' marks that it is out-of-date wrt. its base).
TODO: Speed up by an order of magnitude
diff --git
a/tg-summary.sh
b/tg-summary.sh
index 12b60d8d665f77ec679fc4da5a8732b80aede551..ac3cdfb17e60c0a2dd44b32d087ee0c3ba70f63d 100644
(file)
--- a/
tg-summary.sh
+++ b/
tg-summary.sh
@@
-17,11
+17,14
@@
fi
git for-each-ref refs/top-bases |
while read rev name ref; do
name="${ref#refs/top-bases/}"
git for-each-ref refs/top-bases |
while read rev name ref; do
name="${ref#refs/top-bases/}"
+ missing_deps=
nonempty=
! branch_empty "$name" || nonempty='0'
deps_update=' '
needs_update "$name" >/dev/null || deps_update='D'
nonempty=
! branch_empty "$name" || nonempty='0'
deps_update=' '
needs_update "$name" >/dev/null || deps_update='D'
+ deps_missing=' '
+ [ -z "$missing_deps" ] || deps_missing='!'
base_update=' '
branch_contains "$name" "refs/top-bases/$name" || base_update='B'
base_update=' '
branch_contains "$name" "refs/top-bases/$name" || base_update='B'
@@
-32,6
+35,6
@@
git for-each-ref refs/top-bases |
subject="(No commits)"
fi
subject="(No commits)"
fi
- printf '%s%s%s
\t%-31s\t%s\n' "$nonempty" "$deps_update
" "$base_update" \
+ printf '%s%s%s
%s\t%-31s\t%s\n' "$nonempty" "$deps_update" "$deps_missing
" "$base_update" \
"$name" "$subject"
done
"$name" "$subject"
done