• 1 Post
  • 16 Comments
Joined 3 months ago
cake
Cake day: March 13th, 2025

help-circle
  • Unless you go in with a byte editor, you can’t change Mercurial’s commit history. I didn’t say “fabricate”, I said “change”.

    In git you also cannot change history of a commit. You can only create a new commit with a new history. You’re arguing about semantics which don’t change the end result.

    The point is, with Mercurial it would be hard and the result would be utterly incompatible with any other clone of the repo: there would be no way to propagate your changes to other clones. With git, this is a standard workflow.

    As the example under discussion demonstrates, it’s also impossible to propagate the changes to git clones. Since history changed, merging the pull requests shows all the differences. That’s how Linus noticed the issue.








  • mina86@lemmy.wtftoLinux@lemmy.mlWorld on warcraft on Linux
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    2 months ago

    Admittedly, I’m probably not the best person to ask for recommendation of a noob-friendly distro, but I feel people are overthinking this. If someone produces a list which includes distros I’ve never heard of, I think they spent too much time on ‘Top 10 Noob Friendly Distros in 2025’ websites.

    If you really care about my recommendation, just start with Mint.

    PS. I should also add, this isn’t criticism of you or any other new user who does search online for recommendation. This is more a comment on state of the Internet where there are so many websites which seem to pad their list with obscure distros where really all such articles should give recommendation for one of the same three distributions. Which three I don’t exactly know.






  • You want readlink -f rather than ls -l. ++OK, actually not exactly. readlink won’t print path to the symlink so it’s not as straightforward.++

    Also, you want + in find ... -exec ... + rather than ;.

    At this point I feel committed to making readlink work. ;) Here’s the script you want:

    #!/bin/sh
    
    want=$1
    shift
    readlink -f -- "$@" | while read got; do
    	if [ "$got" = "$want" ]; then
    		echo "$1"
    	fi
    	shift
    done
    

    and execute it as:

    find ~ -type l -exec /bin/sh /path/to/the/script /path/to/target/dir {} +