Add type annotations and use match statement

Now works only in python3.10 and above
This commit is contained in:
2022-12-09 21:57:25 -05:00
parent 6b37b6e50f
commit 7c11878345
2 changed files with 28 additions and 26 deletions

View File

@@ -40,7 +40,7 @@
Git config file (`~/.gitconfig`) should look like this
```toml
```TOML
[alias]
...
dt = difftool --tool vimtabdiff --dir-diff
@@ -51,13 +51,13 @@ Git config file (`~/.gitconfig`) should look like this
# Known issues
1. If your path to custom vim has space, it does not work. i.e. Following does *not* work
1. If your path to custom vim has space, it does not work. i.e. Following does **not** work
```bash
git config --global difftool.vimtabdiff.cmd 'vimtabdiff.py --vim "/home/foo/my files/bin/vim" $LOCAL $REMOTE'
```
2. Not tested in non-linux OS. Pull requests welcome if found any issues.
2. Not tested in non-linux OS. Pull requests welcome if found any issues but hopefully should work fine.
# Similar
https://gist.github.com/Osse/4709787
https://gist.github.com/Osse/4709787