Last active
July 20, 2024 09:17
-
-
Save jakub-g/7599177 to your computer and use it in GitHub Desktop.
sort git diff --stat starting from the files that have most lines changed
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git show HEAD --stat=200 | tail +7 | awk '{ print $3 " "$4 " " $1}' | sort -n -r | less |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5430 +++++++++++++++++++++++++++++++++++++++++++-------------------------------------------- src/aria/utils/SynEvents.j | |
3566 ++++++++++++++++++++++++++++----------------------------- src/aria/utils/Date.js | |
3182 +++++++++++++++++++++++++-------------------------- src/aria/Aria.js | |
2276 ++++++++++++++++++------------------- src/aria/templates/CfgBeans.js | |
1764 ++++++++++++++-------------- src/aria/core/JsObject.js | |
1204 ++++++++++---------- src/aria/templates/Repeater.js | |
998 ++++++++-------- src/aria/core/Interfaces.js | |
972 ++++++++-------- src/aria/templates/ClassWriter.js | |
846 +++++++------- test/aria/utils/DeviceTest.js | |
764 ++++++------- src/aria/core/Log.js | |
752 ++++++------ src/aria/templates/Modifiers.js | |
738 ++++++------ src/aria/templates/Layout.js | |
698 ++++++------ src/aria/tester/runner/ModuleController.js | |
634 +++++------ src/aria/utils/FrameATLoader.js | |
556 ++++----- src/aria/widgets/frames/TableFrame.js | |
474 ++++---- src/aria/utils/DomOverlay.js | |
474 ++++---- src/aria/core/ResClassLoader.js | |
454 ++++---- src/aria/utils/Device.js | |
.. | |
1 - build/README.md | |
changed, 18963 1025 |
@rcdaily, I agree! This should do the trick: https://gist.github.com/milo-minderbinder/28d8a81bf2335dc51bec36cd24394c8f
*edit for the lazy:
git diff --stat --stat-width "$(tput cols)" --color=always | sort -t '|' -n -k2 "$@"
or, even better, as a git alias:
git config --global alias.diff-stat-sort '!git diff --stat --stat-width "$(tput cols)" --color=always | sort -t "|" -n -k2'
*edit for the lazy:
git diff --stat --stat-width "$(tput cols)" --color=always | sort -k3 "$@"
sort
should also have -nr
, e.g. (for diffing two commits):
git diff --stat --stat-width "$(tput cols)" --color=always 5c68a1cb123..a2589f19e6de | sort -nr -k3 "$@" | head
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Needs improvements:
diff --stat
)