You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2019/03/20 15:00:16 UTC

[sling-tooling-scm] 07/35: SLING-3987 - move from Subversion to Git

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-tooling-scm.git

commit 0494cc7825bedc955977eb0290403e9e1b2ffd14
Author: Robert Munteanu <ro...@apache.org>
AuthorDate: Thu Sep 21 13:01:40 2017 +0000

    SLING-3987 - move from Subversion to Git
    
    Add script to find large files in git repositories
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1809159 13f79535-47bb-0310-9956-ffa450edef68
---
 scripts/git-find-large-files.sh | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/scripts/git-find-large-files.sh b/scripts/git-find-large-files.sh
new file mode 100644
index 0000000..5833ca8
--- /dev/null
+++ b/scripts/git-find-large-files.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# script which finds large files in the git repository
+# this lists all objects in the repo history, which means
+# we can use it to detect when files that don't belong
+# to the repo where incorrectly kept after extracting
+# a module
+
+git rev-list --objects --all | grep "$(git verify-pack -v .git/objects/pack/*.idx | sort -k 3 -n | tail -10 | awk '{print$1}')"