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
@lilin90 We can use git diff to compare the same file from two branches and output to a markdown file.
Here is a simple bash for this:
git diff -U6000 --word-diff release-7.4 release-7.1 -- system-variables.md --no-index |\
tail +6 |\
sed 's/\[-/~~/g;s/-]/~~/g;'|\
sed 's/{\+/__/g;s/+}/__/g'>~/Repos/sys-var-new.md
The -U6000 is just provide the lines to compare, we can use wc -l <file> to calculate the actual lines of the file for each branch and use the greater number to have a more precise value.
Attached the output of this command to see the result.
https://docs.pingcap.com/tidb/dev/system-variables
A PR has been created for this: #445
The text was updated successfully, but these errors were encountered: