You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* working on toy
* subprocess.Popen works
* port to app
* copy before detaching
* print message in main process
* quiet server logging
* fix regex warning
* update message and notes
* Apply suggestions from code review
Co-authored-by: Copilot <[email protected]>
---------
Co-authored-by: Copilot <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+7-2Lines changed: 7 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -144,7 +144,7 @@ To iterate on the PyPI package, run:
144
144
145
145
pip3 uninstall webdiff
146
146
poetry build
147
-
pip3 install dist/webdiff-?.?.?.tar.gz
147
+
pip3 install dist/webdiff-(latest).tar.gz
148
148
149
149
To publish to pypitest:
150
150
@@ -155,6 +155,8 @@ And to the real pypi:
155
155
156
156
poetry publish
157
157
158
+
You can publish pre-release versions to pypi by adding "bN" to the version number.
159
+
158
160
See [pypirc][] and [poetry][] docs for details on setting up tokens for pypi.
159
161
160
162
Publication checklist. Do these from _outside_ the webdiff directory:
@@ -184,7 +186,10 @@ When you run `git webdiff (args)`, it runs:
184
186
185
187
This tells `git` to set up two directories and invoke `webdiff leftdir rightdir`.
186
188
187
-
There's one complication involving symlinks. `git difftool -d` may fill one of the sides (typically the right) with symlinks. This is faster than copying files, but unfortunately `git diff --no-index` does not resolve these symlinks. To make this work, if a directory contains symlinks, webdiff makes a copy of it before diffing. For file diffs, it resolves the symlink before passing it to `git diff --no-index`. The upshot is that you can run `git webdiff`, edit a file, reload the browser window and see the changes.
189
+
There are two wrinkles here:
190
+
191
+
-`git difftool -d` may fill one of the sides (typically the right) with symlinks. This is faster than copying files, but unfortunately `git diff --no-index` does not resolve these symlinks. To make this work, if a directory contains symlinks, webdiff makes a copy of it before diffing. For file diffs, it resolves the symlink before passing it to `git diff --no-index`. The upshot is that you can run `git webdiff`, edit a file, reload the browser window and see the changes.
192
+
-`git difftool` cleans up its temporary directories when the main webdiff process terminates. Since webdiff detaches to give you back your terminal, it has to make another copy of the directories (this time without resolving symlinks) to make sure they're still there for the child process.
0 commit comments