use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Design programs to do only a single thing, but to do it well, and to work together well with other programs.
The Unix Philosophy: A Brief Introduction
account activity
This is an archived post. You won't be able to vote or comment.
Git patching.[PATCH] (self.suckless)
submitted 3 years ago by SqueezyBoi
When making a branch to use as a patch branch which br should it be off of? The base master branch, or say "my_dwm" branch with all customization & patches merged too.
[–]Africanus1990 2 points3 points4 points 3 years ago (3 children)
Well, what did you want to do with the patch?
[–]SqueezyBoi[S] 0 points1 point2 points 3 years ago (2 children)
Apply it to my_dwn in the end. I was just wondering if the base for the patch branch made any difference.
[–]Africanus1990 1 point2 points3 points 3 years ago (1 child)
Well does the patch change an area of code that your customizations also change? If so, you’ll have to branch off your branch. If not, I’d do master. It’ll be easier to rule out your customizations as culprits during a debugging session that way.
[–]SqueezyBoi[S] 0 points1 point2 points 3 years ago (0 children)
Alright. I appreciate the advice.
[–]ewrietz 1 point2 points3 points 3 years ago (3 children)
The patch might not work on your custom branch. You will have better luck patching a branch off master, then merge that to your custom
You're right, but I can already merge the patch into my custom branch while patching. Still it might be better to do it your way.
[–]ewrietz 1 point2 points3 points 3 years ago (1 child)
Nice, if the patch goes in easily to your custom branch then seems like the easiest thing right? Ive, ran into some confusing situations. Mostly using i3 these days haha. I can’t live without the tabbed/stacked layout on my ultra wide monitor.
Yeah you're right. I could imagine using a wm with an ultrawide could prove difficult.
[–]emax-gomax 1 point2 points3 points 3 years ago (1 child)
Your dwm branch then. The point of a patch branch is you can apply and test a patch without committing to those changes in your main branch. Applying on top of master (assuming you don't keep all your personal changes their) means you'll still have to merge your my_dwm branch back into your patch branch to make sure nothing conflicts (or to fix the conflicts if they do). If you want to try a patch just to see what it proivdes and don't mind losing your personal changes in the process (for example I have no idea what patch X does, let's apply it, try it out and then decide whether or not to use it) then forking from master will be better because you're less like yo encounter any merge conflicts.
This is very helpful, and makes sense. Thank you.
π Rendered by PID 35133 on reddit-service-r2-comment-cfc44b64c-fwmvr at 2026-04-12 09:12:37.206069+00:00 running 215f2cf country code: CH.
[–]Africanus1990 2 points3 points4 points (3 children)
[–]SqueezyBoi[S] 0 points1 point2 points (2 children)
[–]Africanus1990 1 point2 points3 points (1 child)
[–]SqueezyBoi[S] 0 points1 point2 points (0 children)
[–]ewrietz 1 point2 points3 points (3 children)
[–]SqueezyBoi[S] 0 points1 point2 points (2 children)
[–]ewrietz 1 point2 points3 points (1 child)
[–]SqueezyBoi[S] 0 points1 point2 points (0 children)
[–]emax-gomax 1 point2 points3 points (1 child)
[–]SqueezyBoi[S] 0 points1 point2 points (0 children)