Skip to content

Modern patch, written in Python. 现代化的 Patch 工具。

License

Notifications You must be signed in to change notification settings

jingfelix/Patche

Repository files navigation

Patche

Modern patch, written in Python.

English | 简体中文

PyPI PyPI - License pdm-managed

🔨 Usage

The following commands are supported:

➡️ patche apply

Apply a patch to target files.

patche apply <patch-file>

Options:

  • -R, --reverse: Assume patches were created with old and new files swapped
  • -F, --fuzz LINES: Set the fuzz factor to LINES for inexact matching

↕️ patche show

Show details of a patch file.

patche show <patch-file>

⚙️ patche settings

Display current configuration.

patche settings

🧰 Config

patche loads the configuration from a file named .patche.env in $HOME.

max_diff_lines = 3

💻 Development

patche uses pdm as package manager. To install the dependencies in your workspace, run:

pdm install --prod

# If you want to trace patche execution
pdm install

ref: PDM Documentation

About

Modern patch, written in Python. 现代化的 Patch 工具。

Topics

Resources

License

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages