Ah, lots of goodies....bite those... get the Git 2.54 release brings....
Posted by unixbhaskar@reddit | linux | View on Reddit | 21 comments
Posted by unixbhaskar@reddit | linux | View on Reddit | 21 comments
Skaarj@reddit
How is the new hook feature not an obvious security failiure?
Am I missing something obious? To me this reads like the most trivial way to create a malicious git repo ever.
klti@reddit
Hooks are either client-side or server-side, but they don't cross that boundary. Same with config file. It's not like the server provides the code and the client executes them, that would indeed be a nightmare.
Worst you can do is globally define s malicious local hook that gets invoked locally on all repos. But that's a client side compromise anyways to get that.
Skaarj@reddit
But it says
So it is in a file created by cloning a repo?
fuchsi@reddit
No. It's just a git config feature.
klti@reddit
No, git has a local global and per repo configs, through wich you usually configure stuff like your name and email, local git behaviors, etc. It's not retrieved from the remote, on the opposite, it contains infos relating to remotes (like branch mappings, and IIRC the remote URL)
OsgoodSlaughters@reddit
Anyone using jujutsu? Why should I switch?
Kilobyte22@reddit
git is optimized for a workflow where you commit each change and don't touch it anymore.
jj is optimized for a workflow where each commit is carefully crafted, and also updated regularly during review process before it is finally merged. You can do those workflows with git as well but jj is designed from the ground up for them. You can just go back in history, update a commit, jump back, push all affected branches. Basically, amend becomes the default, creating a new commit is an additional operation, and you can just jump to any commit at any time.
prey169@reddit
I've been using it almost exclusively for a year
It works for me, default git never worked with my brain but jj works extremely well for me
thuiop1@reddit
How well does it interact with regular git? I know jj uses git under the hood, but can I safely use it on a repo where people use plain old git?
prey169@reddit
Yea no one I know uses jj AFAIK.
So it's completely transparent to everyone else
OsgoodSlaughters@reddit
The merge functionality especially sounds great since no one I work with rebases off main and I have to fix every pr
UltraPoci@reddit
As a git noob, I find jujutsu extremely useful, because I get to use complex and advanced git functionalities in an easy and straightforward way, with the ability to undo every operation I do.
BassmanBiff@reddit
What is happening with this title
bawng@reddit
Also, why is a Git release in r/Linux?
ThomasterXXL@reddit
why are you in r/linux?
Nereithp@reddit
r/linux is frequently used to discuss/promote FOSS software more broadly. It's generally accepted because all other FOSS-related subs are either dying or were never really alive to begin with.
e-chris@reddit
Same founder 😂
bawng@reddit
Yeah so if this was r/Linus it would make sense.
iamapizza@reddit
... Bite those...
Special_Sherbert4617@reddit
This is exciting. Splitting commits has always been annoying as fuck.
NeedleworkerLarge357@reddit
The split commit function sounds awesome, that is always a but clunky with rebase, reset -soft and then recreation of commits. I'll test that tomorrow!