@@ -57,15 +57,39 @@ If neither flag is set, `psplit` will use the square root of the number of
57
57
hunks in the file, the geometric median between all the hunks in one part
58
58
and one hunk per part.
59
59
60
+ ## Example
61
+
62
+ ```
63
+ $ g diff HEAD~ | psplit -d patches
64
+ Creating patches/
65
+ Writing patches/tools-linter-adapters-_linter.py.patch
66
+ Writing patches/tools-linter-adapters-_linter-__init__.py.patch
67
+ Writing patches/tools-linter-adapters-_linter-argument_parser.py.patch
68
+ Writing patches/tools-linter-adapters-_linter-block.py.patch
69
+ Writing patches/tools-linter-adapters-_linter-blocks.py.patch
70
+ Writing patches/tools-linter-adapters-_linter-bracket_pairs.py.patch
71
+ Writing patches/tools-linter-adapters-_linter-file_linter.py.patch
72
+ Writing patches/tools-linter-adapters-_linter-file_summary.py.patch
73
+ Writing patches/tools-linter-adapters-_linter-messages.py.patch
74
+ Writing patches/tools-linter-adapters-_linter-python_file.py.patch
75
+ Writing patches/tools-linter-adapters-_linter-sets.py.patch
76
+ Writing patches/tools-linter-adapters-docstring_linter.py-1.patch
77
+ Writing patches/tools-linter-adapters-docstring_linter.py-2.patch
78
+ Writing patches/tools-linter-adapters-docstring_linter.py-3.patch
79
+ Writing patches/tools-linter-adapters-set_linter.py-1.patch
80
+ Writing patches/tools-linter-adapters-set_linter.py-2.patch
81
+ Writing patches/tools-test-test_docstring_linter.py.patch
82
+ ```
83
+
60
84
## How to install
61
85
62
- Either use Pip : ` python -m pip install psplit ` . Or simply download the file
86
+ Either use ` pip ` : ` python -m pip install psplit ` . Or simply download the file
63
87
` psplit.py ` and put it into your path.
64
88
65
89
66
90
## Other alternatives
67
91
68
92
https://manpages.ubuntu.com/manpages/xenial/man1/splitpatch.1.html didn't work
69
- well for large files
93
+ well for large files and isn't available on Mac OS
70
94
71
95
https://pypi.org/project/splitpatch/ is complicated and very new
0 commit comments