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 2017/09/21 13:01:40 UTC

svn commit: r1809159 - /sling/trunk/tooling/scm/scripts/git-find-large-files.sh

Author: rombert
Date: Thu Sep 21 13:01:40 2017
New Revision: 1809159

URL: http://svn.apache.org/viewvc?rev=1809159&view=rev
Log:
SLING-3987 - move from Subversion to Git

Add script to find large files in git repositories

Added:
    sling/trunk/tooling/scm/scripts/git-find-large-files.sh

Added: sling/trunk/tooling/scm/scripts/git-find-large-files.sh
URL: http://svn.apache.org/viewvc/sling/trunk/tooling/scm/scripts/git-find-large-files.sh?rev=1809159&view=auto
==============================================================================
--- sling/trunk/tooling/scm/scripts/git-find-large-files.sh (added)
+++ sling/trunk/tooling/scm/scripts/git-find-large-files.sh Thu Sep 21 13:01:40 2017
@@ -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}')"