webdiff 0.15.0__tar.gz → 1.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- webdiff-1.0.0/LICENSE +201 -0
- webdiff-1.0.0/PKG-INFO +209 -0
- webdiff-1.0.0/README.md +185 -0
- {webdiff-0.15.0 → webdiff-1.0.0}/setup.py +5 -3
- {webdiff-0.15.0 → webdiff-1.0.0}/webdiff/app.py +102 -37
- {webdiff-0.15.0 → webdiff-1.0.0}/webdiff/argparser.py +36 -16
- webdiff-1.0.0/webdiff/diff.py +149 -0
- webdiff-1.0.0/webdiff/dirdiff.py +69 -0
- {webdiff-0.15.0 → webdiff-1.0.0}/webdiff/github_fetcher.py +37 -20
- {webdiff-0.15.0 → webdiff-1.0.0}/webdiff/githubdiff.py +9 -9
- {webdiff-0.15.0 → webdiff-1.0.0}/webdiff/gitwebdiff.py +5 -1
- webdiff-1.0.0/webdiff/localfilediff.py +57 -0
- webdiff-1.0.0/webdiff/options.py +64 -0
- {webdiff-0.15.0 → webdiff-1.0.0}/webdiff/static/codediff.js/codediff.css +1 -1
- webdiff-1.0.0/webdiff/static/codediff.js/codediff.js +534 -0
- {webdiff-0.15.0 → webdiff-1.0.0}/webdiff/static/css/style.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/a11y-dark.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/a11y-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/agate.css +20 -0
- webdiff-1.0.0/webdiff/static/css/themes/an-old-hope.css +9 -0
- webdiff-1.0.0/webdiff/static/css/themes/androidstudio.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/arduino-light.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/arta.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/ascetic.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/atom-one-dark-reasonable.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/atom-one-dark.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/atom-one-light.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/3024.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/apathy.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/apprentice.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/ashes.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/atelier-cave-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/atelier-cave.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/atelier-dune-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/atelier-dune.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/atelier-estuary-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/atelier-estuary.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/atelier-forest-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/atelier-forest.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/atelier-heath-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/atelier-heath.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/atelier-lakeside-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/atelier-lakeside.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/atelier-plateau-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/atelier-plateau.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/atelier-savanna-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/atelier-savanna.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/atelier-seaside-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/atelier-seaside.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/atelier-sulphurpool-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/atelier-sulphurpool.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/atlas.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/bespin.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/black-metal-bathory.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/black-metal-burzum.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/black-metal-dark-funeral.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/black-metal-gorgoroth.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/black-metal-immortal.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/black-metal-khold.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/black-metal-marduk.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/black-metal-mayhem.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/black-metal-nile.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/black-metal-venom.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/black-metal.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/brewer.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/bright.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/brogrammer.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/brush-trees-dark.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/brush-trees.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/chalk.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/circus.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/classic-dark.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/classic-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/codeschool.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/colors.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/cupcake.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/cupertino.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/danqing.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/darcula.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/dark-violet.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/darkmoss.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/darktooth.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/decaf.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/default-dark.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/default-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/dirtysea.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/dracula.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/edge-dark.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/edge-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/eighties.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/embers.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/equilibrium-dark.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/equilibrium-gray-dark.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/equilibrium-gray-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/equilibrium-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/espresso.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/eva-dim.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/eva.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/flat.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/framer.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/fruit-soda.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/gigavolt.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/github.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/google-dark.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/google-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/grayscale-dark.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/grayscale-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/green-screen.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/gruvbox-dark-hard.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/gruvbox-dark-medium.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/gruvbox-dark-pale.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/gruvbox-dark-soft.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/gruvbox-light-hard.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/gruvbox-light-medium.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/gruvbox-light-soft.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/hardcore.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/harmonic16-dark.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/harmonic16-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/heetch-dark.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/heetch-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/helios.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/hopscotch.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/horizon-dark.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/horizon-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/humanoid-dark.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/humanoid-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/ia-dark.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/ia-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/icy-dark.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/ir-black.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/isotope.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/kimber.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/london-tube.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/macintosh.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/marrakesh.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/materia.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/material-darker.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/material-lighter.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/material-palenight.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/material-vivid.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/material.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/mellow-purple.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/mexico-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/mocha.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/monokai.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/nebula.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/nord.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/nova.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/ocean.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/oceanicnext.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/one-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/onedark.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/outrun-dark.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/papercolor-dark.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/papercolor-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/paraiso.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/pasque.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/phd.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/pico.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/pop.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/porple.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/qualia.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/railscasts.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/rebecca.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/ros-pine-dawn.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/ros-pine-moon.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/ros-pine.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/sagelight.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/sandcastle.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/seti-ui.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/shapeshifter.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/silk-dark.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/silk-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/snazzy.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/solar-flare-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/solar-flare.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/solarized-dark.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/solarized-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/spacemacs.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/summercamp.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/summerfruit-dark.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/summerfruit-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/synth-midnight-terminal-dark.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/synth-midnight-terminal-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/tango.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/tender.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/tomorrow-night.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/tomorrow.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/twilight.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/unikitty-dark.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/unikitty-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/vulcan.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/windows-10-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/windows-10.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/windows-95-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/windows-95.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/windows-high-contrast-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/windows-high-contrast.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/windows-nt-light.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/windows-nt.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/woodland.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/xcode-dusk.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/base16/zenburn.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/brown-paper.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/brown-papersq.png +0 -0
- webdiff-1.0.0/webdiff/static/css/themes/codepen-embed.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/color-brewer.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/dark.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/default.css +9 -0
- webdiff-1.0.0/webdiff/static/css/themes/devibeans.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/docco.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/far.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/felipec.css +7 -0
- webdiff-1.0.0/webdiff/static/css/themes/foundation.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/github-dark-dimmed.css +9 -0
- webdiff-1.0.0/webdiff/static/css/themes/github-dark.css +10 -0
- webdiff-1.0.0/webdiff/static/css/themes/github.css +10 -0
- webdiff-1.0.0/webdiff/static/css/themes/gml.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/googlecode.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/gradient-dark.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/gradient-light.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/grayscale.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/hybrid.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/idea.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/intellij-light.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/ir-black.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/isbl-editor-dark.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/isbl-editor-light.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/kimbie-dark.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/kimbie-light.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/lightfair.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/lioshi.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/magula.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/mono-blue.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/monokai-sublime.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/monokai.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/night-owl.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/nnfx-dark.css +10 -0
- webdiff-1.0.0/webdiff/static/css/themes/nnfx-light.css +10 -0
- webdiff-1.0.0/webdiff/static/css/themes/nord.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/obsidian.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/panda-syntax-dark.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/panda-syntax-light.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/paraiso-dark.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/paraiso-light.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/pojoaque.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/pojoaque.jpg +0 -0
- webdiff-1.0.0/webdiff/static/css/themes/purebasic.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/qtcreator-dark.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/qtcreator-light.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/rainbow.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/routeros.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/school-book.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/shades-of-purple.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/srcery.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/stackoverflow-dark.css +13 -0
- webdiff-1.0.0/webdiff/static/css/themes/stackoverflow-light.css +13 -0
- webdiff-1.0.0/webdiff/static/css/themes/sunburst.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/tokyo-night-dark.css +8 -0
- webdiff-1.0.0/webdiff/static/css/themes/tokyo-night-light.css +8 -0
- webdiff-1.0.0/webdiff/static/css/themes/tomorrow-night-blue.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/tomorrow-night-bright.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/vs.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/vs2015.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/xcode.css +1 -0
- webdiff-1.0.0/webdiff/static/css/themes/xt256.css +1 -0
- webdiff-1.0.0/webdiff/static/js/file_diff.js +52 -0
- webdiff-1.0.0/webdiff/static/js/highlight.min.js +3403 -0
- {webdiff-0.15.0 → webdiff-1.0.0}/webdiff/templates/base.html +2 -2
- {webdiff-0.15.0 → webdiff-1.0.0}/webdiff/templates/file_diff.html +1 -0
- webdiff-1.0.0/webdiff/unified_diff.py +179 -0
- {webdiff-0.15.0 → webdiff-1.0.0}/webdiff/util.py +38 -21
- webdiff-1.0.0/webdiff.egg-info/PKG-INFO +209 -0
- webdiff-1.0.0/webdiff.egg-info/SOURCES.txt +293 -0
- {webdiff-0.15.0 → webdiff-1.0.0}/webdiff.egg-info/entry_points.txt +0 -1
- webdiff-1.0.0/webdiff.egg-info/requires.txt +7 -0
- webdiff-0.15.0/PKG-INFO +0 -133
- webdiff-0.15.0/README +0 -23
- webdiff-0.15.0/README.md +0 -115
- webdiff-0.15.0/webdiff/diff.py +0 -110
- webdiff-0.15.0/webdiff/dirdiff.py +0 -96
- webdiff-0.15.0/webdiff/localfilediff.py +0 -46
- webdiff-0.15.0/webdiff/static/codediff.js/codediff.js +0 -683
- webdiff-0.15.0/webdiff/static/js/file_diff.js +0 -795
- webdiff-0.15.0/webdiff.egg-info/PKG-INFO +0 -133
- webdiff-0.15.0/webdiff.egg-info/SOURCES.txt +0 -40
- webdiff-0.15.0/webdiff.egg-info/requires.txt +0 -5
- {webdiff-0.15.0 → webdiff-1.0.0}/MANIFEST.in +0 -0
- {webdiff-0.15.0 → webdiff-1.0.0}/setup.cfg +0 -0
- {webdiff-0.15.0 → webdiff-1.0.0}/webdiff/__init__.py +0 -0
- {webdiff-0.15.0 → webdiff-1.0.0}/webdiff/static/__init__.py +0 -0
- {webdiff-0.15.0 → webdiff-1.0.0}/webdiff/static/codediff.js/difflib.js +0 -0
- {webdiff-0.15.0 → webdiff-1.0.0}/webdiff/static/codediff.js/googlecode.css +0 -0
- {webdiff-0.15.0 → webdiff-1.0.0}/webdiff/static/css/Inconsolata/Inconsolata-Bold.ttf +0 -0
- {webdiff-0.15.0 → webdiff-1.0.0}/webdiff/static/css/Inconsolata/Inconsolata-Regular.ttf +0 -0
- {webdiff-0.15.0 → webdiff-1.0.0}/webdiff/static/css/Inconsolata/OFL.txt +0 -0
- {webdiff-0.15.0 → webdiff-1.0.0}/webdiff/static/css/googlecode.css +0 -0
- {webdiff-0.15.0 → webdiff-1.0.0}/webdiff/static/css/inconsolata.css +0 -0
- {webdiff-0.15.0 → webdiff-1.0.0}/webdiff/static/img/favicon.ico +0 -0
- {webdiff-0.15.0 → webdiff-1.0.0}/webdiff/static/img/sprites.png +0 -0
- {webdiff-0.15.0 → webdiff-1.0.0}/webdiff/static/img/trans_bg.gif +0 -0
- {webdiff-0.15.0 → webdiff-1.0.0}/webdiff/static/js/highlight.pack.min.js +0 -0
- {webdiff-0.15.0 → webdiff-1.0.0}/webdiff/static/js/jquery-2.1.1.min.js +0 -0
- {webdiff-0.15.0 → webdiff-1.0.0}/webdiff/templates/__init__.py +0 -0
- {webdiff-0.15.0 → webdiff-1.0.0}/webdiff.egg-info/dependency_links.txt +0 -0
- {webdiff-0.15.0 → webdiff-1.0.0}/webdiff.egg-info/top_level.txt +0 -0
webdiff-1.0.0/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright {yyyy} {name of copyright owner}
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
webdiff-1.0.0/PKG-INFO
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: webdiff
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Two-column web-based git difftool
|
|
5
|
+
Home-page: https://github.com/danvk/webdiff/
|
|
6
|
+
Author: Dan Vanderkam
|
|
7
|
+
Author-email: danvdk@gmail.com
|
|
8
|
+
Classifier: Environment :: Console
|
|
9
|
+
Classifier: Environment :: Web Environment
|
|
10
|
+
Classifier: Framework :: Flask
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
14
|
+
Classifier: Topic :: Software Development :: Version Control
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
License-File: LICENSE
|
|
17
|
+
Requires-Dist: binaryornot
|
|
18
|
+
Requires-Dist: flask==2.2.2
|
|
19
|
+
Requires-Dist: pillow
|
|
20
|
+
Requires-Dist: requests
|
|
21
|
+
Requires-Dist: PyGithub==1.55
|
|
22
|
+
Requires-Dist: unidiff==0.7.4
|
|
23
|
+
Requires-Dist: Werkzeug==2.2.2
|
|
24
|
+
|
|
25
|
+
# git webdiff
|
|
26
|
+
|
|
27
|
+
Two-column web-based git difftool.
|
|
28
|
+
|
|
29
|
+
<p align="center">
|
|
30
|
+
<a href="https://pypi.org/project/webdiff/" target="_blank"><img alt="PyPI - Version" src="https://img.shields.io/pypi/v/webdiff" /></a>
|
|
31
|
+
<a href="https://dl.circleci.com/status-badge/redirect/gh/danvk/webdiff/tree/master" target="_blank"><img alt="CircleCI 📝" src="https://dl.circleci.com/status-badge/img/gh/danvk/webdiff/tree/master.svg?style=svg" /></a>
|
|
32
|
+
<a href="https://github.com/danvk/webdiff/blob/master/LICENSE" target="_blank"><img alt="License: Apache2 📝" src="https://img.shields.io/github/license/danvk/webdiff" /></a>
|
|
33
|
+
<a href="https://github.com/sponsors/danvk" target="_blank"><img alt="Sponsor: On GitHub 💸" src="https://img.shields.io/badge/sponsor-on_github_💸-21bb42.svg" /></a>
|
|
34
|
+
</p>
|
|
35
|
+
|
|
36
|
+
Features include:
|
|
37
|
+
|
|
38
|
+
* Side-by-side (two column) diff view
|
|
39
|
+
* Runs in the browser of your choice on any platform.
|
|
40
|
+
* Syntax highlighting via highlight.js
|
|
41
|
+
* Step back and forth through multiple files in a single diff
|
|
42
|
+
* Rich support for image diffs
|
|
43
|
+
|
|
44
|
+
<!-- This is `git webdiff 05157bba^..05157bba`, in this repo -->
|
|
45
|
+

|
|
46
|
+
|
|
47
|
+
<!-- This is `git webdiff c80f969^..c80f969` in the dygraphs-dpxdt repo -->
|
|
48
|
+

|
|
49
|
+
|
|
50
|
+
## Installation
|
|
51
|
+
|
|
52
|
+
pip install webdiff
|
|
53
|
+
|
|
54
|
+
or, if you prefer [Homebrew]:
|
|
55
|
+
|
|
56
|
+
brew install danvk/webdiff/webdiff
|
|
57
|
+
|
|
58
|
+
(the latter will also install [ImageMagick] as a recommended dependency.)
|
|
59
|
+
|
|
60
|
+
## Usage
|
|
61
|
+
|
|
62
|
+
Instead of running "git diff", run:
|
|
63
|
+
|
|
64
|
+
git webdiff
|
|
65
|
+
|
|
66
|
+
You can also start webdiff via:
|
|
67
|
+
|
|
68
|
+
git webdiff [args]
|
|
69
|
+
|
|
70
|
+
You can pass all the same arguments that you would to `git diff`, e.g.
|
|
71
|
+
`1234..5678` or `HEAD`.
|
|
72
|
+
|
|
73
|
+
`webdiff` can also be invoked directly to diff two directories or files:
|
|
74
|
+
|
|
75
|
+
webdiff <left_dir> <right_dir>
|
|
76
|
+
webdiff <left_file> <right_file>
|
|
77
|
+
|
|
78
|
+
You can also use `webdiff` to view GitHub pull requests:
|
|
79
|
+
|
|
80
|
+
webdiff https://github.com/owner/repo/pull/123
|
|
81
|
+
webdiff '#123' # if you're in a git repo with a github remote
|
|
82
|
+
|
|
83
|
+
This will download the files relevant to the Pull Request and run `webdiff`.
|
|
84
|
+
|
|
85
|
+
If you run into GitHub API quota limits or you'd like to use webdiff with
|
|
86
|
+
private repos, you can set your credentials in a `.githubrc` file:
|
|
87
|
+
|
|
88
|
+
user.login: yourusername
|
|
89
|
+
user.token: your-personal-access-tokens
|
|
90
|
+
|
|
91
|
+
Make sure you chmod this file to only be readable by yourself. You can generate
|
|
92
|
+
a personal access token for webdiff via github.com → profile → Settings →
|
|
93
|
+
Personal access tokens. Make sure to grant all the "repo" privileges.
|
|
94
|
+
|
|
95
|
+
## Configuration
|
|
96
|
+
|
|
97
|
+
webdiff can be configured via [`git config`][git config]. To change the syntax highlighting theme, for example:
|
|
98
|
+
|
|
99
|
+
git config webdiff.theme rainbow
|
|
100
|
+
|
|
101
|
+
(You can find a list of supported themes in the [themes] directory.)
|
|
102
|
+
|
|
103
|
+
As with any git configuration setting, these can be set globally or per-repo.
|
|
104
|
+
|
|
105
|
+
Options are:
|
|
106
|
+
|
|
107
|
+
| Setting | Default | Notes |
|
|
108
|
+
| -------------- | ------------- | ------ |
|
|
109
|
+
| webdiff.theme | googlecode | Syntax highlighting theme (see [themes] directory). |
|
|
110
|
+
| webdiff.port | -1 | Port on which to serve webdiff. Default is random open port. This can be overridden with the `--port` command line flag or the `WEBDIFF_PORT` environment variable. |
|
|
111
|
+
| webdiff.host | localhost | Host name on which to serve the webdiff UI. Use `0.0.0.0` to serve publicly. The special value `<hostname>` uses your computer's network name. This can be overridden with the `--host` command line flag or the `WEBDIFF_HOST` environment variable. |
|
|
112
|
+
| webdiff.maxDiffWidth | 100 | Maximum length of lines in the diff display. After this width, lines will wrap. |
|
|
113
|
+
| webdiff.unified | 8 | Lines of context to display by default (`git diff -U`) |
|
|
114
|
+
| webdiff.extraDirDiffArgs | "" | Any extra arguments to pass to `git diff` when diffing directories. |
|
|
115
|
+
| webdiff.extraFileDiffArgs | "" | Any extra arguments to pass to `git diff` when diffing files. |
|
|
116
|
+
| webdiff.openBrowser | true | Whether to automatically open the browser UI when you run webdiff. |
|
|
117
|
+
| webdiff.maxLinesForSyntax | 10000 | Maximum lines in file to do syntax highlighting. |
|
|
118
|
+
| webdiff.colors.delete | #fee | CSS background color for delete (left) lines |
|
|
119
|
+
| webdiff.colors.insert | #efe | CSS background color for insert (right) lines |
|
|
120
|
+
| webdiff.colors.charDelete | #fcc | CSS background color for deleted characters in a delete (left) line |
|
|
121
|
+
| webdiff.colors.charInsert | #cfc | CSS background color for inserted characters in an insert (right) line |
|
|
122
|
+
|
|
123
|
+
## Development
|
|
124
|
+
|
|
125
|
+
python3 -m venv venv
|
|
126
|
+
source venv/bin/activate
|
|
127
|
+
pip install -r requirements.txt
|
|
128
|
+
cd ts
|
|
129
|
+
yarn
|
|
130
|
+
# see https://github.com/webpack/webpack/issues/14532
|
|
131
|
+
NODE_OPTIONS=--openssl-legacy-provider webpack
|
|
132
|
+
|
|
133
|
+
Then from the root directory:
|
|
134
|
+
|
|
135
|
+
PYTHONPATH=. ./webdiff/app.py testdata/dygraphsjs/{left,right}
|
|
136
|
+
|
|
137
|
+
or to launch in debug mode:
|
|
138
|
+
|
|
139
|
+
./test.sh $(pwd)/testdata/manyfiles/{left,right}
|
|
140
|
+
|
|
141
|
+
(or any other directory in testdata)
|
|
142
|
+
|
|
143
|
+
To run the Python tests:
|
|
144
|
+
|
|
145
|
+
pytest
|
|
146
|
+
|
|
147
|
+
To format the code, run:
|
|
148
|
+
|
|
149
|
+
./scripts/black.sh
|
|
150
|
+
cd ts
|
|
151
|
+
yarn prettier
|
|
152
|
+
|
|
153
|
+
To debug `git webdiff`, run:
|
|
154
|
+
|
|
155
|
+
WEBDIFF_CONFIG=$(pwd)/testing.cfg ./webdiff/gitwebdiff.py
|
|
156
|
+
|
|
157
|
+
To iterate on the PyPI package, run:
|
|
158
|
+
|
|
159
|
+
# from outside the webdiff virtualenv:
|
|
160
|
+
pip3 uninstall webdiff
|
|
161
|
+
|
|
162
|
+
# from inside the webdiff virtualenv, adjust for current version
|
|
163
|
+
python setup.py sdist
|
|
164
|
+
mkdir /tmp/webdiff-test
|
|
165
|
+
cp dist/webdiff-?.?.?.tar.gz /tmp/webdiff-test
|
|
166
|
+
|
|
167
|
+
deactivate
|
|
168
|
+
cd /tmp/webdiff-test
|
|
169
|
+
pip3 install webdiff-?.?.?.tar.gz
|
|
170
|
+
|
|
171
|
+
To publish to pypitest:
|
|
172
|
+
|
|
173
|
+
pip install --upgrade wheel setuptools twine
|
|
174
|
+
python setup.py sdist bdist_wheel
|
|
175
|
+
twine upload -r testpypi dist/*
|
|
176
|
+
|
|
177
|
+
And to the real pypi:
|
|
178
|
+
|
|
179
|
+
twine upload dist/*
|
|
180
|
+
|
|
181
|
+
See [pypirc][] docs for details on setting up `~/.pypirc`.
|
|
182
|
+
|
|
183
|
+
## Implementation notes
|
|
184
|
+
|
|
185
|
+
webdiff doesn't calculate any diffs itself. Instead, it relies on `git diff`. This is possible because `git diff` has a `--no-index` mode that allows it to operate outside of a git repository. Of course, this means that you need to have `git` installed to use webdiff!
|
|
186
|
+
|
|
187
|
+
When you run `webdiff dir1 dir2`, webdiff runs:
|
|
188
|
+
|
|
189
|
+
git diff --raw --no-index dir1 dir2
|
|
190
|
+
|
|
191
|
+
To ask `git` which files are adds, removes, renames and changes. Then, when it's serving the web UI for a particular diff, it runs:
|
|
192
|
+
|
|
193
|
+
git diff --no-index (diff args) file1 file2
|
|
194
|
+
|
|
195
|
+
This produces a patch, which is what the web UI renders. (It also needs both full files for syntax highlighting.)
|
|
196
|
+
|
|
197
|
+
When you run `git webdiff (args)`, it runs:
|
|
198
|
+
|
|
199
|
+
git difftool -d -x webdiff (args)
|
|
200
|
+
|
|
201
|
+
This tells `git` to set up two directories and invoke `webdiff leftdir rightdir`.
|
|
202
|
+
|
|
203
|
+
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.
|
|
204
|
+
|
|
205
|
+
[pypirc]: https://packaging.python.org/specifications/pypirc/
|
|
206
|
+
[Homebrew]: https://brew.sh/
|
|
207
|
+
[ImageMagick]: https://imagemagick.org/index.php
|
|
208
|
+
[git config]: https://git-scm.com/docs/git-config
|
|
209
|
+
[themes]: http://example.com
|
webdiff-1.0.0/README.md
ADDED
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
# git webdiff
|
|
2
|
+
|
|
3
|
+
Two-column web-based git difftool.
|
|
4
|
+
|
|
5
|
+
<p align="center">
|
|
6
|
+
<a href="https://pypi.org/project/webdiff/" target="_blank"><img alt="PyPI - Version" src="https://img.shields.io/pypi/v/webdiff" /></a>
|
|
7
|
+
<a href="https://dl.circleci.com/status-badge/redirect/gh/danvk/webdiff/tree/master" target="_blank"><img alt="CircleCI 📝" src="https://dl.circleci.com/status-badge/img/gh/danvk/webdiff/tree/master.svg?style=svg" /></a>
|
|
8
|
+
<a href="https://github.com/danvk/webdiff/blob/master/LICENSE" target="_blank"><img alt="License: Apache2 📝" src="https://img.shields.io/github/license/danvk/webdiff" /></a>
|
|
9
|
+
<a href="https://github.com/sponsors/danvk" target="_blank"><img alt="Sponsor: On GitHub 💸" src="https://img.shields.io/badge/sponsor-on_github_💸-21bb42.svg" /></a>
|
|
10
|
+
</p>
|
|
11
|
+
|
|
12
|
+
Features include:
|
|
13
|
+
|
|
14
|
+
* Side-by-side (two column) diff view
|
|
15
|
+
* Runs in the browser of your choice on any platform.
|
|
16
|
+
* Syntax highlighting via highlight.js
|
|
17
|
+
* Step back and forth through multiple files in a single diff
|
|
18
|
+
* Rich support for image diffs
|
|
19
|
+
|
|
20
|
+
<!-- This is `git webdiff 05157bba^..05157bba`, in this repo -->
|
|
21
|
+

|
|
22
|
+
|
|
23
|
+
<!-- This is `git webdiff c80f969^..c80f969` in the dygraphs-dpxdt repo -->
|
|
24
|
+

|
|
25
|
+
|
|
26
|
+
## Installation
|
|
27
|
+
|
|
28
|
+
pip install webdiff
|
|
29
|
+
|
|
30
|
+
or, if you prefer [Homebrew]:
|
|
31
|
+
|
|
32
|
+
brew install danvk/webdiff/webdiff
|
|
33
|
+
|
|
34
|
+
(the latter will also install [ImageMagick] as a recommended dependency.)
|
|
35
|
+
|
|
36
|
+
## Usage
|
|
37
|
+
|
|
38
|
+
Instead of running "git diff", run:
|
|
39
|
+
|
|
40
|
+
git webdiff
|
|
41
|
+
|
|
42
|
+
You can also start webdiff via:
|
|
43
|
+
|
|
44
|
+
git webdiff [args]
|
|
45
|
+
|
|
46
|
+
You can pass all the same arguments that you would to `git diff`, e.g.
|
|
47
|
+
`1234..5678` or `HEAD`.
|
|
48
|
+
|
|
49
|
+
`webdiff` can also be invoked directly to diff two directories or files:
|
|
50
|
+
|
|
51
|
+
webdiff <left_dir> <right_dir>
|
|
52
|
+
webdiff <left_file> <right_file>
|
|
53
|
+
|
|
54
|
+
You can also use `webdiff` to view GitHub pull requests:
|
|
55
|
+
|
|
56
|
+
webdiff https://github.com/owner/repo/pull/123
|
|
57
|
+
webdiff '#123' # if you're in a git repo with a github remote
|
|
58
|
+
|
|
59
|
+
This will download the files relevant to the Pull Request and run `webdiff`.
|
|
60
|
+
|
|
61
|
+
If you run into GitHub API quota limits or you'd like to use webdiff with
|
|
62
|
+
private repos, you can set your credentials in a `.githubrc` file:
|
|
63
|
+
|
|
64
|
+
user.login: yourusername
|
|
65
|
+
user.token: your-personal-access-tokens
|
|
66
|
+
|
|
67
|
+
Make sure you chmod this file to only be readable by yourself. You can generate
|
|
68
|
+
a personal access token for webdiff via github.com → profile → Settings →
|
|
69
|
+
Personal access tokens. Make sure to grant all the "repo" privileges.
|
|
70
|
+
|
|
71
|
+
## Configuration
|
|
72
|
+
|
|
73
|
+
webdiff can be configured via [`git config`][git config]. To change the syntax highlighting theme, for example:
|
|
74
|
+
|
|
75
|
+
git config webdiff.theme rainbow
|
|
76
|
+
|
|
77
|
+
(You can find a list of supported themes in the [themes] directory.)
|
|
78
|
+
|
|
79
|
+
As with any git configuration setting, these can be set globally or per-repo.
|
|
80
|
+
|
|
81
|
+
Options are:
|
|
82
|
+
|
|
83
|
+
| Setting | Default | Notes |
|
|
84
|
+
| -------------- | ------------- | ------ |
|
|
85
|
+
| webdiff.theme | googlecode | Syntax highlighting theme (see [themes] directory). |
|
|
86
|
+
| webdiff.port | -1 | Port on which to serve webdiff. Default is random open port. This can be overridden with the `--port` command line flag or the `WEBDIFF_PORT` environment variable. |
|
|
87
|
+
| webdiff.host | localhost | Host name on which to serve the webdiff UI. Use `0.0.0.0` to serve publicly. The special value `<hostname>` uses your computer's network name. This can be overridden with the `--host` command line flag or the `WEBDIFF_HOST` environment variable. |
|
|
88
|
+
| webdiff.maxDiffWidth | 100 | Maximum length of lines in the diff display. After this width, lines will wrap. |
|
|
89
|
+
| webdiff.unified | 8 | Lines of context to display by default (`git diff -U`) |
|
|
90
|
+
| webdiff.extraDirDiffArgs | "" | Any extra arguments to pass to `git diff` when diffing directories. |
|
|
91
|
+
| webdiff.extraFileDiffArgs | "" | Any extra arguments to pass to `git diff` when diffing files. |
|
|
92
|
+
| webdiff.openBrowser | true | Whether to automatically open the browser UI when you run webdiff. |
|
|
93
|
+
| webdiff.maxLinesForSyntax | 10000 | Maximum lines in file to do syntax highlighting. |
|
|
94
|
+
| webdiff.colors.delete | #fee | CSS background color for delete (left) lines |
|
|
95
|
+
| webdiff.colors.insert | #efe | CSS background color for insert (right) lines |
|
|
96
|
+
| webdiff.colors.charDelete | #fcc | CSS background color for deleted characters in a delete (left) line |
|
|
97
|
+
| webdiff.colors.charInsert | #cfc | CSS background color for inserted characters in an insert (right) line |
|
|
98
|
+
|
|
99
|
+
## Development
|
|
100
|
+
|
|
101
|
+
python3 -m venv venv
|
|
102
|
+
source venv/bin/activate
|
|
103
|
+
pip install -r requirements.txt
|
|
104
|
+
cd ts
|
|
105
|
+
yarn
|
|
106
|
+
# see https://github.com/webpack/webpack/issues/14532
|
|
107
|
+
NODE_OPTIONS=--openssl-legacy-provider webpack
|
|
108
|
+
|
|
109
|
+
Then from the root directory:
|
|
110
|
+
|
|
111
|
+
PYTHONPATH=. ./webdiff/app.py testdata/dygraphsjs/{left,right}
|
|
112
|
+
|
|
113
|
+
or to launch in debug mode:
|
|
114
|
+
|
|
115
|
+
./test.sh $(pwd)/testdata/manyfiles/{left,right}
|
|
116
|
+
|
|
117
|
+
(or any other directory in testdata)
|
|
118
|
+
|
|
119
|
+
To run the Python tests:
|
|
120
|
+
|
|
121
|
+
pytest
|
|
122
|
+
|
|
123
|
+
To format the code, run:
|
|
124
|
+
|
|
125
|
+
./scripts/black.sh
|
|
126
|
+
cd ts
|
|
127
|
+
yarn prettier
|
|
128
|
+
|
|
129
|
+
To debug `git webdiff`, run:
|
|
130
|
+
|
|
131
|
+
WEBDIFF_CONFIG=$(pwd)/testing.cfg ./webdiff/gitwebdiff.py
|
|
132
|
+
|
|
133
|
+
To iterate on the PyPI package, run:
|
|
134
|
+
|
|
135
|
+
# from outside the webdiff virtualenv:
|
|
136
|
+
pip3 uninstall webdiff
|
|
137
|
+
|
|
138
|
+
# from inside the webdiff virtualenv, adjust for current version
|
|
139
|
+
python setup.py sdist
|
|
140
|
+
mkdir /tmp/webdiff-test
|
|
141
|
+
cp dist/webdiff-?.?.?.tar.gz /tmp/webdiff-test
|
|
142
|
+
|
|
143
|
+
deactivate
|
|
144
|
+
cd /tmp/webdiff-test
|
|
145
|
+
pip3 install webdiff-?.?.?.tar.gz
|
|
146
|
+
|
|
147
|
+
To publish to pypitest:
|
|
148
|
+
|
|
149
|
+
pip install --upgrade wheel setuptools twine
|
|
150
|
+
python setup.py sdist bdist_wheel
|
|
151
|
+
twine upload -r testpypi dist/*
|
|
152
|
+
|
|
153
|
+
And to the real pypi:
|
|
154
|
+
|
|
155
|
+
twine upload dist/*
|
|
156
|
+
|
|
157
|
+
See [pypirc][] docs for details on setting up `~/.pypirc`.
|
|
158
|
+
|
|
159
|
+
## Implementation notes
|
|
160
|
+
|
|
161
|
+
webdiff doesn't calculate any diffs itself. Instead, it relies on `git diff`. This is possible because `git diff` has a `--no-index` mode that allows it to operate outside of a git repository. Of course, this means that you need to have `git` installed to use webdiff!
|
|
162
|
+
|
|
163
|
+
When you run `webdiff dir1 dir2`, webdiff runs:
|
|
164
|
+
|
|
165
|
+
git diff --raw --no-index dir1 dir2
|
|
166
|
+
|
|
167
|
+
To ask `git` which files are adds, removes, renames and changes. Then, when it's serving the web UI for a particular diff, it runs:
|
|
168
|
+
|
|
169
|
+
git diff --no-index (diff args) file1 file2
|
|
170
|
+
|
|
171
|
+
This produces a patch, which is what the web UI renders. (It also needs both full files for syntax highlighting.)
|
|
172
|
+
|
|
173
|
+
When you run `git webdiff (args)`, it runs:
|
|
174
|
+
|
|
175
|
+
git difftool -d -x webdiff (args)
|
|
176
|
+
|
|
177
|
+
This tells `git` to set up two directories and invoke `webdiff leftdir rightdir`.
|
|
178
|
+
|
|
179
|
+
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.
|
|
180
|
+
|
|
181
|
+
[pypirc]: https://packaging.python.org/specifications/pypirc/
|
|
182
|
+
[Homebrew]: https://brew.sh/
|
|
183
|
+
[ImageMagick]: https://imagemagick.org/index.php
|
|
184
|
+
[git config]: https://git-scm.com/docs/git-config
|
|
185
|
+
[themes]: http://example.com
|
|
@@ -6,7 +6,7 @@ with open('README.md', encoding='utf8') as fh:
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
setup(name='webdiff',
|
|
9
|
-
version='0.
|
|
9
|
+
version='1.0.0',
|
|
10
10
|
description='Two-column web-based git difftool',
|
|
11
11
|
long_description=long_description,
|
|
12
12
|
long_description_content_type='text/markdown',
|
|
@@ -22,10 +22,12 @@ setup(name='webdiff',
|
|
|
22
22
|
packages=find_packages(exclude=['tests*']),
|
|
23
23
|
install_requires=[
|
|
24
24
|
'binaryornot',
|
|
25
|
-
'flask',
|
|
25
|
+
'flask==2.2.2',
|
|
26
26
|
'pillow',
|
|
27
27
|
'requests',
|
|
28
|
-
'PyGithub==1.
|
|
28
|
+
'PyGithub==1.55',
|
|
29
|
+
'unidiff==0.7.4',
|
|
30
|
+
'Werkzeug==2.2.2',
|
|
29
31
|
],
|
|
30
32
|
include_package_data=True,
|
|
31
33
|
package_data = {
|