GithubHelp home page GithubHelp logo

Comments (9)

rktjmp avatar rktjmp commented on June 12, 2024 1

🎉

Better?

from lush.nvim.

rktjmp avatar rktjmp commented on June 12, 2024

Yeah I thought about that previously, but I am not sure it can be done?

I can remove the current files but you'll always get them pulled down with history anyway, and filter-branching the whole project isn't really viable since it's a destructive action, afaik.

It also makes submitting "made with lush" screenshots a bit harder though I guess I could manually merge them externally (not like a ton of people share their lush themes though).

Removing the current demo gifs saves 900k which isn't nothing but it's also not ... much? (I say this with bad internet.) Total clone weight is 3.575M (clone comes down compressed).

I wonder if git has a git clone --shallow kind of option where it only pulls HEAD.

Not against the idea, just... not sure how much it will do for you.

from lush.nvim.

rktjmp avatar rktjmp commented on June 12, 2024

Cloning out git clone -b medialess --single-branch https://github.com/rktmjp/lush.nvim has the same payload size, since the history is the same, which is obvious in hindsight when remembering how git works.

Open to suggestions if there is a solution.

from lush.nvim.

rktjmp avatar rktjmp commented on June 12, 2024
~/scratch
λ ifstat; git clone -b medialess --single-branch --depth 1 https://github.com/rktjmp/lush.nvim; ifstat
#kernel
Interface        RX Pkts/Rate    TX Pkts/Rate    RX Data/Rate    TX Data/Rate
                 RX Errs/Drop    TX Errs/Drop    RX Over/Rate    TX Coll/Rate
lo                    79 0            79 0         26844 0         26844 0
                       0 0             0 0             0 0             0 0
eno1                3753 0          2575 0         4369K 0        278170 0
                       0 0             0 0             0 0             0 0
docker0                0 0             0 0             0 0             0 0
                       0 0             0 0             0 0             0 0
Cloning into 'lush.nvim'...
remote: Enumerating objects: 88, done.
remote: Counting objects: 100% (88/88), done.
remote: Compressing objects: 100% (63/63), done.
remote: Total 88 (delta 10), reused 53 (delta 5), pack-reused 0
Receiving objects: 100% (88/88), 65.42 KiB | 1.92 MiB/s, done.
Resolving deltas: 100% (10/10), done.
#kernel
Interface        RX Pkts/Rate    TX Pkts/Rate    RX Data/Rate    TX Data/Rate
                 RX Errs/Drop    TX Errs/Drop    RX Over/Rate    TX Coll/Rate
lo                     0 0             0 0             0 0             0 0
                       0 0             0 0             0 0             0 0
eno1                  80 0            73 0         85395 0          6858 0
                       0 0             0 0             0 0             0 0
docker0                0 0             0 0             0 0             0 0
                       0 0             0 0             0 0             0 0

If you use --depth 1 you only get the latest revision, I assume later pulls come in ok. Wonder if packer supports such an option? It's probably widely useful for any repo you only expect to pull into.

from lush.nvim.

shadmansaleh avatar shadmansaleh commented on June 12, 2024

Basically all plugin managers make shallow clones including packer . There's an option to set depth too . You won;t have to rewrite histroy for entire repo . Just updating current main branch would improve a lot.

from lush.nvim.

rktjmp avatar rktjmp commented on June 12, 2024

Yep just saw that. It claims the default depth is 1 too.

Ok sounds good, I'll shuffle stuff around.

from lush.nvim.

shadmansaleh avatar shadmansaleh commented on June 12, 2024

Also made with lush won't be complicated I think . We use links for themes.md in lualine . Haven't yet had to teach any one how to upload an image :)

from lush.nvim.

shadmansaleh avatar shadmansaleh commented on June 12, 2024

I think there's something about the regional github server I access . When cloning large repos with lots of small files it clones without an issue but when cloning bigger files it just crawls :D

from lush.nvim.

shadmansaleh avatar shadmansaleh commented on June 12, 2024

Better?

Definatly . Thanks for quick solution :) Also I didn't think of using a separate branch before it's a better idea then uploading to github.

from lush.nvim.

Related Issues (20)

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.