Giter VIP home page Giter VIP logo

git_diet's People

Contributors

apadierna avatar cmaitchison avatar djjeck avatar maxandersen avatar mckenfra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

git_diet's Issues

purge_objects.sh does not work in Linux

purge_objects.sh works beautifully in Mac OS, however, it does not work in my Linux machine. Below is the sample output in Linux
./purge_objects.sh 3p/src/jdk-8u181-linux-x64.tar.gz raw_size(KB) compressed_size(KB) SHA path exists 181295 180688 9f7993fdc39a7b211f306ad1589c4ec920b058ce 3p/src/jdk-8u181-linux-x64.tar.gz

Filenames with spaces are breaking

If the filename has a space in it, the path is only showing the first part of the name. It may be an awk issue. I'll see if I can figure it out.

Deleting older versions of files

Is there a way that I could tell your script to delete older versions only (5 or commits back) of the largest files it found?

I'm working with a lot of image files and I never needed to restore a very old version, but they're eating up a lot of space on my repo.

I'm not sure this is the best way to contact the author. I'm new to Github and I couldn't find another way.

Thanks!

The repo is empty

bash-3.2$ git clone https://github.com/cmaitchison/git_diet.git
Cloning into 'git_diet'...
remote: Counting objects: 61, done.
remote: Total 61 (delta 0), reused 0 (delta 0), pack-reused 61
Unpacking objects: 100% (61/61), done.
bash-3.2$ cd git_diet/
bash-3.2$ spec/test.sh
FAIL: Didn't get expected number of output lines for find_fattest_objects.sh -n 5
bash-3.2$ cd spec/test-repo
bash-3.2$ git log
commit 009033bf9c764826d01e246c7e6535a6f32fe5c1
Author: cmaitchison <[email protected]>
Date:   Sun Oct 9 19:32:03 2011 +1100

    Deleted file_6.txt
[.....]
bash-3.2$ ../../bin/find_fattest_objects.sh -n 5
The repo is empty
bash-3.2$ ls
file_2.txt	file_4.txt	somedir

fatal: Cannot open existing pack file

When run in a directory which is not a git repository root, the error is
fatal: Cannot open existing pack file '.git/objects/pack/pack-*.idx'

A clearer error would be better.

Additionally, the script could work also inside nested folders within the git repository.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.