Giter Club home page Giter Club logo

Comments (1)

przemoc avatar przemoc commented on June 1, 2024

You can already achieve what you want (as described in title of the issue) by providing paths you are interested in as arguments for metastore.

$ # store metadata only for specified files and directories
$ metastore -s .gitignore man1/
$ # dump content from .metadata
$ metastore -d
-rw-r--r--      przemoc other   2018-01-02 18:31:37.672376115 +0100     ./.gitignore
drwxr-sr-x      przemoc other   2016-12-03 00:58:00.140686412 +0100     ./man1/
-rw-r--r--      przemoc other   2016-12-03 00:58:00.140686412 +0100     ./man1/metastore.1

But maybe what you're asking for is something like this?

  • Add option to include only dirs/files matching any pattern in file (-T FILE, --files-from=FILE)

If yes, then I may accept your request and create dedicated enhancement issue.


Switching gears, what you put in the description of the issue is a bit more specific, because you are referring specifically to the files tracked by git being the specified ones.

metastore is not meant to be tied to any VCS, be it svn, pijul, perforce, hg, git, fossil, darcs, or any other.
So I'm against integrating VCS-related features into metastore.
Example of such unwanted feature can be seen in igordcard/metastore@52ea2735cf10 (further changed in igordcard/metastore@4c831a0586a7).

In case of git it can be achieved in metastore using:

$ git ls-files -z | xargs -0 metastore -s     # store
$ git ls-files -z | xargs -0 metastore -a -m  # apply

Of course it's not bulletproof, because with long list of files, xargs will call metastore more than once, and each subsequent invocation will overwrite previous .metadata file. So having -T option (and equivalent configuration entry when #7 will be implemented) will be still useful.

from metastore.

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.