!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

509 Members
Declarative Home Automation and other Sidequests | https://wiki.nixos.org/wiki/Home_Assistant134 Servers

Load older messages


SenderMessageTime
30 Mar 2025
@hexa:lossy.network@hexa:lossy.networkrun the script and commit the result with the commit message as above01:29:39
@continous:matrix.orgcontinousOk.01:30:41
@continous:matrix.orgcontinousI sent it boys https://github.com/NixOS/nixpkgs/pull/39456009:36:39
@k900:0upti.meK900Added a few comments09:42:04
@k900:0upti.meK900Feel free to ask here if you have questions09:42:15
@continous:matrix.orgcontinousI am still cleaning up a bit, basically.09:48:53
@k900:0upti.meK900Sure, there's no rush09:49:28
@continous:matrix.orgcontinousHow...or what even...is squashing commits?09:49:34
@k900:0upti.meK900Well there's a bunch of tools that can do it09:49:55
@k900:0upti.meK900Fundamentally what you want to do is have a clean commit history09:50:44
@k900:0upti.meK900It's a different way of thinking about what your commits represent, I guess?09:51:46
@k900:0upti.meK900I'm sorry if I'm getting too philosophical about it09:51:54
@k900:0upti.meK900But the idea is that instead of recording a log of your work, in a big project you want to break down your changes into a stack of patches that build on top of each other09:52:31
@k900:0upti.meK900And every patch does one thing, or at least as close to one thing as possible09:52:45
@k900:0upti.meK900In your case, it would be something like 1) add yourself to maintainer list 2) add the new package with you as maintainer 3) regenerate HA components09:53:10
@continous:matrix.orgcontinousDon't worry lol. I've literally never used git before so this is me being entirely fresh to proper "programming"09:54:18
@k900:0upti.meK900Yeah so basically there's kind of two approaches to git09:54:41
@continous:matrix.orgcontinousI just don't really know how to remove commits.09:54:45
@k900:0upti.meK900One is what you're doing, which is keeping an actual history of the work09:54:49
@k900:0upti.meK900The other is what I just described, often called the "stacked" workflow09:55:17
@k900:0upti.meK900 The built-in git tool for doing all of this would be git rebase 09:55:44
@k900:0upti.meK900But it's a pretty sharp tool that is easy to hold wrong09:55:59
@k900:0upti.meK900You might want to use something like https://git-ps.sh/09:57:07
@continous:matrix.orgcontinousWhat exactly is...rebasing? I know I'm taking up your time so don't feel pressured to answer right away.09:58:03
@k900:0upti.meK900Or maybe https://git-revise.readthedocs.io/en/latest/09:58:08
@continous:matrix.orgcontinousRevise git seems more like what I might want to do...09:58:30
@k900:0upti.meK900"Rebasing" is basically just taking your changes and applying them on top of a different commit09:58:44
@k900:0upti.meK900So you're moving them to a new base, so to say09:58:49
@k900:0upti.meK900 But git rebase actually does a lot more than just rebase 09:58:56
@k900:0upti.meK900It can also combine and edit commits09:59:25

Show newer messages


Back to Room ListRoom Version: 6