How I manage DWM patching on OpenBSD using git rebase

These are just notes for me to remember how I manage DWM patching using git rebase. If you find them useful that’s great. Basically we’re going to create 3 branches, master, openbsd and custom. Then we’ll branch from openbsd temporarily into a patch branch, do the patching there and merge everything back into the custom branch using git rebase so that we have a clear linear commit history. Requirements git peace and quiet Obtaining the source mkdir github cd github git clone https://git.suckless.org/dwm cd dwm Branch and do the OpenBSD build change git checkout -b openbsd vi config.mk # uncomment the OpenBSD line and save changes git add config.mk git commit -m openbsd Create our custom branch Now that we have the OpenBSD specific branch we can use that as a basis for customisation. We’ll create a custom branch from where we’ll do the building. ...

October 7, 2021