From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-2.6 required=3.0 tests=AWL,BAYES_00,DKIM_ADSP_ALL, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id C0AFA1F463 for ; Fri, 3 Jan 2020 19:05:01 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 457C6120925; Sat, 4 Jan 2020 04:04:38 +0900 (JST) Authentication-Results: neon.ruby-lang.org; dkim=none reason="no signature"; dkim-adsp=fail (insecure policy); dkim-atps=neutral Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id BEF0D120924 for ; Sat, 4 Jan 2020 04:04:35 +0900 (JST) Received: by filterdrecv-p3las1-5bf99c48d-hsdj2 with SMTP id filterdrecv-p3las1-5bf99c48d-hsdj2-18-5E0F9045-71 2020-01-03 19:04:37.762917844 +0000 UTC m=+1534733.684988955 Received: from herokuapp.com (unknown [54.159.65.60]) by ismtpd0052p1iad1.sendgrid.net (SG) with ESMTP id auCVfNL_QFOV87pscvHhmw for ; Fri, 03 Jan 2020 19:04:37.641 +0000 (UTC) Date: Fri, 03 Jan 2020 19:04:37 +0000 (UTC) From: wolf@wolfsden.cz Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 72306 X-Redmine-Project: ruby-master X-Redmine-Issue-Id: 16477 X-Redmine-Issue-Author: graywolf X-Redmine-Sender: graywolf X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: =?us-ascii?Q?PRmwQyJ3VF6bhZU=2FnOofrH9R1JDYhlDzQ7Cyjv1cZuenjiOJmlJhQrTon7Somx?= =?us-ascii?Q?2LE3BQDrCw=2FXM+IQ3QTuXOlxcHND0lrv8DI4vJl?= =?us-ascii?Q?clH4IGWFSzytEDdKFHYm8MEyppuVL0Fa4O+wkBR?= =?us-ascii?Q?Q6sAbbkcZplQFBP7QEb4G4pdTEb03saDOHRfSsl?= =?us-ascii?Q?yPl05NRFLZe3IpuVaN2J2fqezkChyCQLOxwzqC7?= =?us-ascii?Q?FM6fvyIy0wIB8M8hM=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 96644 Subject: [ruby-core:96644] [Ruby master Bug#16477] readline-ext repository is huge X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #16477 has been reported by graywolf (Gray Wolf). ---------------------------------------- Bug #16477: readline-ext repository is huge https://bugs.ruby-lang.org/issues/16477 * Author: graywolf (Gray Wolf) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: n/a * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN ---------------------------------------- Today I've cloned (my fresh new fork) of readline-ext ``` + $ git clone git@github.com:graywolf/readline-ext.git Cloning into 'readline-ext'... remote: Enumerating objects: 3, done. remote: Counting objects: 100% (3/3), done. remote: Compressing objects: 100% (3/3), done. remote: Total 389416 (delta 0), reused 1 (delta 0), pack-reused 389413 Receiving objects: 100% (389416/389416), 167.29 MiB | 2.83 MiB/s, done. Resolving deltas: 100% (296077/296077), done. ``` ~170 MB repository just for readline gem is way too huge. It is caused by presence of following tags in the repository: ``` v1_0_r2 v1_8_7 v2_0_0_rc1 v2_1_0_rc1 v2_2_0_rc1 v2_7_0_preview1 v2_7_0_preview2 v2_7_0_preview3 v2_7_0_rc1 v2_7_0_rc2 ``` Deleting them and running `git gc` ``` $ git tag --delete v1_0_r2 v1_8_7 v2_0_0_rc1 v2_1_0_rc1 v2_2_0_rc1 v2_7_0_preview1 v2_7_0_preview2 v2_7_0_preview3 v2_7_0_rc1 v2_7_0_rc2 Deleted tag 'v1_0_r2' (was 3db12e8b23) Deleted tag 'v1_8_7' (was c36252fca2) Deleted tag 'v2_0_0_rc1' (was ca6ccd436b) Deleted tag 'v2_1_0_rc1' (was 9881a183bd) Deleted tag 'v2_2_0_rc1' (was 050b43acce) Deleted tag 'v2_7_0_preview1' (was c55db6aa27) Deleted tag 'v2_7_0_preview2' (was 02aadf1032) Deleted tag 'v2_7_0_preview3' (was b563439274) Deleted tag 'v2_7_0_rc1' (was 8a40dce0ff) Deleted tag 'v2_7_0_rc2' (was 75acbd5f00) $ git gc --aggressive --prune=now Enumerating objects: 1505, done. Counting objects: 100% (1505/1505), done. Delta compression using up to 4 threads Compressing objects: 100% (1168/1168), done. Writing objects: 100% (1505/1505), done. Total 1505 (delta 584), reused 921 (delta 0) Computing commit graph generation numbers: 100% (285/285), done. $ du -sh .git 372K .git ``` gets the repo down to few hundred kilobytes. So imho you should really drop those tags since there is no need to hold whole ruby source code in this repository. Just something to consider. -- https://bugs.ruby-lang.org/