all 29 comments

sorted by: hot top controversial new old
[โ€“] 26 points 9 months ago (1 child)

Wow that is really blue, checks background color:

--body-background: blue;
  • source
  • hideshow 1 child comment
  • [โ€“] 49 points 9 months ago (5 children)

    Yes, I believe this was made for MacOS users. I don't need to see your .DS_Store files!

  • source
  • hideshow 5 child comments
  • [โ€“] 26 points 9 months ago (1 child)

    Yes. If there's ever a truly epic Mac zero day, I have faith that whoever finds it will use it to add .DS_Store to every Mac's global .gitignore.

  • source
  • parent
  • hideshow 1 child comment
  • [โ€“] 15 points 9 months ago (7 children)

    Anyone else dislike the idea? Like, having ignore patterns be ported automatically to everyone that wants to clone the repo just seems.... always better than making people do it themselves. At basically no cost.

  • source
  • hideshow 7 child comments
  • [+] [S] 13 points 9 months ago (3 children)
  • [โ€“] 5 points 9 months ago (1 child)

    I have the same preference for personal projects, but when I was working on a corporate team it was really useful to have the "run configs" for intellij checked in so that each new team member didn't need to set them up by themselves. Some of the setup needed to get the python debugger properly connected to the project could get quite gnarly.

  • source
  • parent
  • hideshow 1 child comment
  • [โ€“] 2 points 9 months ago

    Gitignore settings don't prevent checking in run configs if that's what you want to do. Even if someone has the run configs pattern ignored, they'll get those files with the repo clone. Gitignore only prevents adding files that aren't already checked in - it's a guard rail to prevent accidentally checking in so something you don't want. You can override ignore settings to check in something new in with git add --force <filename>

  • source
  • parent
  • [โ€“] 8 points 9 months ago

    shrug To each their own, I guess.

    I can definitely appreciate that opinion, I just... disagree. I don't really give 2 shits about a file having some stuff in it that I don't personally use, so long as it still has a purpose. I.E. I'll take a little clutter in a file like that, that basically never gets looked at or edited, over the chance of cluttering up the repo itself, or PRs, or history with stuff that has no purpose at all.

  • source
  • parent
  • [โ€“] 11 points 9 months ago

    Global gitignore is for idiosyncrasies of your computer, not for repo-specific stuff. For example if you use an editor that writes in-place backup or swap files (like .swp files with Vim's default settings), or you're on a Mac which writes .DS_Store files into every directory, you're going to want those ignored for every repo. That way you can comfortably work with other people's repos, even if they're not configured for your particular setup.

    The global ignore combines with gitignore files in each repo. So if it's an ignore pattern that everyone working with that repo should have, put it in the repo.

  • source
  • parent
  • [โ€“] 4 points 8 months ago

    I actually like it a lot for stuff that is user specific, not repo specific. I imagine someone could have a "build.log" to view the build output in some specific way that hooks up to a mini taskbar app or some other random shit.

    I've personally added some files that don't relate to the project at all and has no reason for being inside a .gitignore and I've had to add it many times.

  • source
  • parent
  • load more comments (-1 replies)
    [โ€“] 12 points 9 months ago

    There's also .git/info/exclude, which is a per-repo local (untracked) .gitignore.

    You can even add more ignore files via configuration (I don't recall how).

  • source
  • [+] 10 points 9 months ago (1 child)
  • [โ€“] 1 point 9 months ago (4 children)

    Completely off topic, but

    Unfortunately, I didn't check that before monkeying with things, so I have no idea if I've changed my system accidentally.

    Reading this makes me feel so powerful to be as familiar as I am with podman/docker (which to be clear is a modest amount). Just do:

    podman run --rm -it debian:latest bash
    

    Then apt install git, check those folders, and finally exit so the entire container gets automatically deleted.

    The whole thing is done in a few seconds (or more depending on how long git takes to download and whether the debian image is already cached)

    Everyone on Linux should have this in their toolbelt.

  • source
  • hideshow 4 child comments
  • [+] 2 points 9 months ago (4 children)
  • [โ€“] 1 point 9 months ago (3 children)

    The solution to the problem is to install git into a clean system so you can observe what changes it makes.

    How would you do this with Nix?

  • source
  • parent
  • hideshow 3 child comments
  • [+] 1 point 8 months ago* (last edited 8 months ago) (3 children)
  • [โ€“] 1 point 8 months ago (2 children)

    I guess you misunderstood my question, because that won't work. nix-shell -p git doesn't provide an isolated operating system. They only isolate programs and libraries. If your native git installation modified something in your home folder, those changes will still be visible inside a nix shell.

    I'm not sure what you're trying to accomplish in those other commands, as they just seem to print out git's dependencies?

    Also, I see you're actively editing your comment as I'm typing so sorry if you actually post the answer after I hit Reply.

  • source
  • parent
  • hideshow 2 child comments
  • [+] 1 point 8 months ago (2 children)
  • [โ€“] 0 points 8 months ago (1 child)

    Well, you're clearly very passionate about nix, but all you've shown is how to install git in an isolated shell, which again isn't what I was asking.

    I don't have anything against nix, but it doesn't seem like the right solution to the particular problem that was presented.

  • source
  • parent
  • hideshow 1 child comment
  • [+] 1 point 8 months ago* (1 child)
  • [โ€“] 0 points 8 months ago

    This is why nix is doomed to be a toy forever, because its user base consists of unhinged cheerleaders. Please do the following:

    1. Breathe in
    2. Count to 6
    3. Breathe out
    4. Count to 6
    5. Repeat until you stop seeing red

    Now, re-read the linked blog post and my comments, and try to understand the problem.

  • source
  • parent
  • load more comments (-1 replies)
  • load more comments (-1 replies)
  • load more comments (-1 replies)
  • load more comments (-1 replies)