diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2009-02-13 03:03:45 +0200 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2009-02-15 02:02:55 +0200 |
commit | 028eaa963012a80eba06f1302a2f6cf270399f84 (patch) | |
tree | af3eaf42f74360a14aa965a826c8159789d2890c /tools | |
parent | 86845b44bb8df64505f84535535fce6b24390322 (diff) |
build: missing files to make a spec template
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/filter-telepathy-spec.sh | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/tools/filter-telepathy-spec.sh b/tools/filter-telepathy-spec.sh new file mode 100755 index 0000000..048abe6 --- /dev/null +++ b/tools/filter-telepathy-spec.sh @@ -0,0 +1,57 @@ +git filter-branch --prune-empty --tree-filter \ +'rm -rf \ +AUTHORS \ +NEWS \ +*.conf \ +*.png \ +*.py \ +*.sh \ +*.css \ +order \ +spec* \ +*.manager \ +TODO* \ +_* \ +*.cheddar \ +docs/* \ +doc/* \ +spec/*.xml \ +telepathy/* \ +telepathy/client/* \ +telepathy/server/* \ +tabby/* \ +tools/gen*.py \ +tools/*.def \ +server/*.py \ +client/*.py \ +test/*.sh \ +services*/* \ +client/.git-darcs-dir \ +doc/.git-darcs-dir \ +docs/.git-darcs-dir \ +server/.git-darcs-dir \ +services/.git-darcs-dir \ +services.in/.git-darcs-dir \ +tabby/.git-darcs-dir \ +telepathy/.git-darcs-dir \ +test/expected/.git-darcs-dir \ +test/.git-darcs-dir \ +test/input/.git-darcs-dir \ +test/services.in/.git-darcs-dir \ +test/services.in/org.freedesktop.Telepathy.ConnectionManager.cheddar \ +test/session.conf \ +tools/.git-darcs-dir \ +' -- master + +git for-each-ref --format='%(refname)' refs/original | while read ref; + do git update-ref -d $ref; +done + +git reflog expire --expire=0 + +git prune +git repack -adf + +# drop merges +git rebase $(git log | tail | grep commit | cut -f2 -d' ') + |