Coder Social home page Coder Social logo

Comments (3)

jpmschuler avatar jpmschuler commented on June 14, 2024 1

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.

samuelmeuli avatar samuelmeuli commented on June 14, 2024

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.

samuelmeuli avatar samuelmeuli commented on June 14, 2024

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)

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.