add easy diff for document tracking#7498
Conversation
309b2e9 to
90427cf
Compare
|
This script is based on the assumption that documents in other languages are fully synchronized with the en document at a commit. |
90427cf to
d2704d9
Compare
docs/tools/easy_diff.py
Outdated
There was a problem hiding this comment.
| def diffFile(reference_file, working_file, git, temp_diff): | |
| def diff_file(reference_file, working_file, git, temp_diff): |
snake_case style is more common in python for function names and as far as I remember nearby scripts use it, let's change this? (here and below)
docs/tools/easy_diff.py
Outdated
There was a problem hiding this comment.
not so important, but I think:
- it's better to write
CLICKHOUSEin one word os.path.join(os.path.dirname(SCRIPT_PATH), '..', '..')looks better
docs/tools/easy_diff.py
Outdated
There was a problem hiding this comment.
shouldn't we use this number as exit code below where we call these functions?
docs/tools/easy_diff.py
Outdated
There was a problem hiding this comment.
We'd better start using argparse module right away to make it more flexible and extendable. For example there could be an option to skip the git pager part.
@zhang2014 it's better to add this comment to |
d2704d9 to
f8d0ebc
Compare
f8d0ebc to
6db3da8
Compare
f8e50d6 to
281c81c
Compare
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en
Category :
Detailed description (optional):
for example:
use stdout print :
use git pager print: