chiark
/
gitweb
/
~ian
/
topgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
hooks/pre-commit: check for deps repetitions
[topgit.git]
/
tg-export.sh
diff --git
a/tg-export.sh
b/tg-export.sh
index a16c2901d0a53b4ca8295e9e2ebc9efd5a82048a..6d82d55751bd41159f04f20f55b753baaec94c44 100644
(file)
--- a/
tg-export.sh
+++ b/
tg-export.sh
@@
-67,10
+67,9
@@
trap 'rm -rf "$playground"' EXIT
# Output tree ID of a cleaned-up tree without tg's artifacts.
pretty_tree()
{
# Output tree ID of a cleaned-up tree without tg's artifacts.
pretty_tree()
{
- (export GIT_INDEX_FILE="$playground/^index"
- git read-tree "$1"
- git update-index --force-remove ".topmsg" ".topdeps"
- git write-tree)
+ git ls-tree --full-tree "$1" \
+ | awk -F ' ' '$2 !~ /^.top/' \
+ | git mktree
}
create_tg_commit()
}
create_tg_commit()