Comments (3)
I'll create a MWE in due time (during this week supposedly).
I don't quite understand why you'd only want folders to be ignored. Isn't .DS_Store the perfect example for ignoring single files?
Get your pro arguments, here two con arguments:
.DS_Store
is local to my machine and thus not saved in the repo because of the.gitignore
. If TimeMachine won't back it up, I won't have any means of restoring it, in contrast to e.g. build artifacts or dependencies of a project which I can recreate from some scripts and definitions inside the repo.- In other cases I have tool installed via git where the main config file is gitignored, in order not to pollute the tool repo (only a config.sample file is in the repo). This config is even more important than the silly stuff in a
.DS_Store
, however I won't change the .gitignore, because that's not mine
Of course this might be specific to the projects and technologies one is working with (here especially: npm, composer, docker), but my major usage scenario is drop hundreds of folders like node_modules
with 10th of thousands of files, and not some single files with less than 1kb.
I'd rather drop both, but I thought why not ask - don't know that much about Swift, but having one option and and if like isFile
won't impact architecture much I believe.
And P.S: this is an enhancement, not really a bug - it doesn't cause any problems at all.
from tmignore.
Thanks for opening the issue! I agree, only the .Build
folder should be excluded. Would you be able to provide me with a ZIP of such a project so I can debug this locally? :)
I don't quite understand why you'd only want folders to be ignored. Isn't .DS_Store
the perfect example for ignoring single files?
from tmignore.
I think these are actually two separate issues:
- Files in an excluded folder being excluded as well (I condsider this a bug because it's not the behavior I intended)
- Option to only have
tmignore
exclude directories (feature suggestion)
You're raising some good points about the second issue. I don't think it's uncommon to ignore single files, though. Consider a .gitignore
file with ignore patterns like *.log
or *.js
(in a TypeScript project where JavaScript is the build output).
I'm wondering if for your use case, it wouldn't be enough to configure tmignore
's whitelist to include */.DS_Store
and some common config formats (e.g. *.env
, *.json
, *.yml
) to avoid introducing a new option?
from tmignore.
Related Issues (17)
- Errors with high number of exclusions HOT 14
- Failed to add backup exclusions: /bin/bash: -c: line 0: unexpected EOF while looking for matching `'' HOT 3
- node_modules being backed up despite being tmignored (?) HOT 6
- Add blacklist support
- tmignore fails to install via Homebrew on macOS Big Sur HOT 7
- Fail to install on high sierra with brew
- Why not publish to homebrew?
- `tmignore list` is difficult for other programs to parse
- Anybody willing to maintain a fork? HOT 9
- Error handling path names with spaces HOT 1
- Ability to list ignored files HOT 2
- Unable to install: full installation of Xcode required HOT 3
- Installation via homebrew fails (missing xctest) HOT 5
- Compatibility with Swift 5.0 HOT 1
- Allow configuration of folder(s) to search in HOT 4
- Homebrew install fails HOT 23
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 tmignore.