Comments (1)
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)
- Cygwin support HOT 2
- More documentation with exemplary git hooks HOT 1
- Change default installation prefix to /usr/local HOT 1
- Parallelize store action HOT 3
- Add option to show metastore version (`-V`, `--version`) HOT 1
- Store and apply actions fail when user or group ID of some dirs/files in file system has no entry in password or group database HOT 4
- metastore -s fails with SIGABRT if necessary permissions are missing HOT 3
- Mac support HOT 6
- Cygwin and Mingw (Windows) support HOT 3
- Can't change owner when current owner is numeric UID HOT 2
- OpenBSD support
- Reading metadata file with xattrs leads to corruption in memory on 64-bit platforms HOT 7
- Managing Git workflows in large repos HOT 1
- Apply action silently proceeds when owner or group of some dirs/files in metadata has no entry in password or group database
- Revamp messages and their verbosity levels
- Introduce OS-agnostic API internally to support different POSIX systems
- Do not skip nanoseconds when applying mtime HOT 1
- Release new version
- Support other attributes HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metastore.