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:
879c061
)
branch_empty: use pretty_tree and therefore respect -i/-w
author
Bert Wesarg
<bert.wesarg@googlemail.com>
Thu, 7 Oct 2010 19:54:22 +0000
(21:54 +0200)
committer
Bert Wesarg
<bert.wesarg@googlemail.com>
Mon, 8 Nov 2010 07:27:29 +0000
(08:27 +0100)
Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
tg.sh
patch
|
blob
|
history
diff --git
a/tg.sh
b/tg.sh
index c77898678cdd275783746b0567a6de7edb905192..caf7d2836cc1db2e0269415aa224b3377c01d38c 100644
(file)
--- a/
tg.sh
+++ b/
tg.sh
@@
-284,10
+284,10
@@
needs_update()
recurse_deps branch_needs_update "$@"
}
-# branch_empty NAME
+# branch_empty NAME
[-i | -w]
branch_empty()
{
- [
-z "$(git diff-tree "refs/top-bases/$1" "$1" -- | fgrep -v " .top"
)" ]
+ [
"$(pretty_tree "$1" -b)" = "$(pretty_tree "$1" ${2-}
)" ]
}
# list_deps