Skip to main content
Advice
0 votes
0 replies
17 views

This script adds a line to add custom.js to vivaldi browser directory: #!/bin/bash vivaldi=/opt/vivaldi/resources/vivaldi moddir=$HOME/vivaldi-modding/ sudo cp $moddir/custom.js $vivaldi sudo sed -i -...
Rainer Brumshagen's user avatar
1765 votes
13 answers
1.2m views

I want to create a patch for a specific commit hash, <rev>. I tried using git format-patch <rev>, but that generated a patch for each commit since the <rev> commit. Is there a way to ...
elle's user avatar
  • 17.7k
0 votes
0 answers
29 views

I'm using buildroot 2024.02. I set BR2_GLOBAL_PATCH_DIR+="$(BR2_EXTERNAL_MY_PATH)/patches". Its contents: % tree /home/admin/buildroot-external-my/patches /home/admin/buildroot-external-my/...
Papillon's user avatar
  • 327
570 votes
15 answers
564k views

I have a certain patch called my_pcc_branch.patch. When I try to apply it, I get following message: $ git apply --check my_pcc_branch.patch warning: src/main/java/.../AbstractedPanel.java has type ...
Glory to Russia's user avatar
319 votes
8 answers
375k views

I work on WordPress based project and I want to patch my project at each new release version of WP. For this, I want generate a patch between two commits or tags. For example, in my repo /www/WP I do ...
zatamine's user avatar
  • 3,888
2 votes
2 answers
59 views

I have a function that is supposed to enlarge all labels in a figure to make it ready for export. However I fail to enlarge the legend properly: import matplotlib.pyplot as plt def enlarge_legend(ax, ...
Galedon's user avatar
  • 398
453 votes
7 answers
597k views

I have two local git repositories, both pointing to the same remote repository. In one git repository, if I do git format-patch 1, how can I apply that patch to the other repository?
silverburgh's user avatar
  • 9,809
275 votes
10 answers
193k views

I am using a PUT request in my Rails application. Now, a new HTTP verb, PATCH has been implemented by browsers. So, I want to know what the main difference between PATCH and PUT requests are, and when ...
user3276063's user avatar
  • 2,783
169 votes
8 answers
44k views

Say I get a patch created with git format-patch. The file is basically a unified diff with some metadata. If I open the file in Vim, I can see which lines have been modified, but I cannot see which ...
Adam Monsen's user avatar
  • 9,554
107 votes
6 answers
200k views

I've been trying to implement some unit tests for a module. An example module named alphabet.py is as follows: import database def length_letters(): return len(letters) def contains_letter(...
Funkatic's user avatar
  • 1,253
447 votes
5 answers
266k views

The situation: master is at X quickfix1 is at X + 2 commits Such that: o-o-X (master HEAD) \ q1a--q1b (quickfix1 HEAD) Then I started working on quickfix2, but by accident took quickfix1 ...
Alex Yarmula's user avatar
  • 10.7k
90 votes
8 answers
86k views

This is the situation: We created a "private" repo (say our-repo) based off an existing open-source git repo (say source-repo). We have been developing code and have around 20 merges into our repo. So,...
SimpleCoder's user avatar
  • 1,413
0 votes
1 answer
1k views

I have a very complex logic statement that uses multiple settings to determine if to perform a Patch() function. I use Notify() to isolate which statement is firing. I have isolated it to Statement#4 ...
Kevin's user avatar
  • 1
17 votes
3 answers
32k views

Say I have a Node.js app, lets call it patched-app. This app is a simple app that uses prompt-sync to ask for user input and then does something with it. So we create a folder patched-app and ...
Swiffy's user avatar
  • 4,755
245 votes
6 answers
257k views

I am looking for the command for creating a patch from the last commit made. My workflow sometimes looks like this: vi some.txt git add some.txt git commit -m "some change" Now I just want ...
claj's user avatar
  • 5,432

15 30 50 per page
1
2 3 4 5
189