Replies: 2 comments 2 replies
-
Sometimes i get a diff with mess indentation like this drawbar(Monitor *m)
{
int x, w, wdelta, tagscheme;
- int y = barborder;
- int h = bh - barborder * 2;
+ int y = m->bargap ? barborder : 0;
+ int h = bh - y * 2;
int boxs = drw->fonts->h / 9;
int boxw = drw->fonts->h / 6 + 2;
unsigned int titlepad = lrpad / 2;
how to avoid this ? especially if using |
Beta Was this translation helpful? Give feedback.
2 replies
-
Great I wanted to ask this |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here is a step-by-step guide for creating patches from scratch.
1) clone the repository and cd into it
2) check out v6.2 of dwm
This is if the patch is going to be for 6.2. I usually do this as that is a more consistent reference.
If your patch is to be for the latest master then skip this step.
3) create a branch for your patch
(branching and checking out can be done in one command, separated here for readability)
4) make your change
5) check that there are no unwanted changes before you commit
6) commit your change
7) create your patch
Here creating the patch against 6.2.
If you skipped step 2 and are creating the patch against latest master it would look like this:
20210621
here referring to the date the patch was last modified and67d76bd
being the seven character git commit short hash of the branch point (i.e. the last commit on the master branch).The short hash can be retrieved via this command:
Alternatively if you didn't create a branch etc. then you can create a patch for the very last commit, e.g.
The final file will look something like this:
You may also want to refer to https://suckless.org/hacking/.
Beta Was this translation helpful? Give feedback.
All reactions