From 601cc6e887f9a27e3538cd012c475828b6f789d8 Mon Sep 17 00:00:00 2001 From: Vlad Hashimoto Date: Tue, 12 Nov 2019 15:47:56 +0300 Subject: [PATCH] docs: change invalid `bash session` language tag (#20827) --- docs/development/patches.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/development/patches.md b/docs/development/patches.md index 824c1589bfc9..60c272d4b247 100644 --- a/docs/development/patches.md +++ b/docs/development/patches.md @@ -41,7 +41,7 @@ To help manage these patch sets, we provide two tools: `git-import-patches` and ### Usage #### Adding a new patch -```bash session +```bash $ cd src/third_party/electron_node $ vim some/code/file.cc $ git commit @@ -53,7 +53,7 @@ $ ../../electron/script/git-export-patches -o ../../electron/patches/node Re-exporting patches will sometimes cause shasums in unrelated patches to change. This is generally harmless and can be ignored (but go ahead and add those changes to your PR, it'll stop them from showing up for other people). #### Editing an existing patch -```bash session +```bash $ cd src/v8 $ vim some/code/file.cc $ git log @@ -64,7 +64,7 @@ $ ../electron/script/git-export-patches -o ../electron/patches/v8 ``` #### Removing a patch -```bash session +```bash $ vim src/electron/patches/node/.patches # Delete the line with the name of the patch you want to remove $ cd src/third_party/electron_node @@ -78,7 +78,7 @@ Note that `git-import-patches` will mark the commit that was `HEAD` when it was #### Resolving conflicts When updating an upstream dependency, patches may fail to apply cleanly. Often, the conflict can be resolved automatically by git with a 3-way merge. You can instruct `git-import-patches` to use the 3-way merge algorithm by passing the `-3` argument: -```bash session +```bash $ cd src/third_party/electron_node # If the patch application failed midway through, you can reset it with: $ git am --abort