Re: Is it possible to git clone --filter= without any objects?

2018-09-11 Thread Matthew DeVore
On Tue, Sep 11, 2018 at 11:30 AM Ciro Santilli wrote: > The mentioned --filter=tree:0 would basically do what I want it seems, > good to hear!. I wonder why not call it tree:none though to match > blob:none. There are some plans of making tree: accept positive integers in order to filter out

Re: Is it possible to git clone --filter= without any objects?

2018-09-11 Thread Ciro Santilli
On Tue, Sep 11, 2018 at 6:47 PM Junio C Hamano wrote: > > Jonathan Tan writes: > > > By "without any objects" in your email subject, do you mean "without > > blob and tree objects"? If yes, there is some code in the > > md/filter-trees branch that can do that with a "--filter=tree:0" > > option.

Re: Is it possible to git clone --filter= without any objects?

2018-09-11 Thread Junio C Hamano
Jonathan Tan writes: > By "without any objects" in your email subject, do you mean "without > blob and tree objects"? If yes, there is some code in the > md/filter-trees branch that can do that with a "--filter=tree:0" > option. I too was wondering what the "without any objects" thing meant

Re: Is it possible to git clone --filter= without any objects?

2018-09-11 Thread Jonathan Tan
On Tue, Sep 11, 2018 at 10:15 AM, Stefan Beller wrote: > You might be pleased to hear about a series floating on the mailing list, > that started at > https://public-inbox.org/git/cover.1533854545.git.matv...@google.com/ > and promised to filter trees away, and its latest version can be found at

Re: Is it possible to git clone --filter= without any objects?

2018-09-11 Thread Stefan Beller
On Tue, Sep 11, 2018 at 12:29 AM Ciro Santilli wrote: > > At v2.19.0 I was trying to clone a fetch just a single directory: > https://stackoverflow.com/questions/600079/how-do-i-clone-a-subdirectory-only-of-a-git-repository/52269934#52269934 > > I got really close with: > > git clone --depth 1

Is it possible to git clone --filter= without any objects?

2018-09-11 Thread Ciro Santilli
At v2.19.0 I was trying to clone a fetch just a single directory: https://stackoverflow.com/questions/600079/how-do-i-clone-a-subdirectory-only-of-a-git-repository/52269934#52269934 I got really close with: git clone --depth 1 --no-checkout --filter=blob:none \ "file://$(pwd)/server_repo"