[PATCHv6 0/8] --dirstat fixes, part 2
- From
Johan Herland <johan@herland.net>
- Date
- Apr 29, 2011, 09:36 UTC
- Message-ID
- <1304069783-22739-1-git-send-email-johan@herland.net>
- In-Reply-To
- <7vfwp13dme.fsf@alter.siamese.dyndns.org>
Hi,
Here's version 6 incorporating Junio's feedback regarding tests, error messages, and i18n. The following patches have changed:
- 1/8: Added test: 'various ways to misspell --dirstat'
- 3/8: Added a couple of more misspellings to the above test
- 7/8: Improved error message handling, and tests covering error messages
- 8/8: New patch marking dirstat error messages for translation.
The new 8/8 patch WILL NOT COMPILE until the topic branch is merged with an i18n/gettext-aware branch (i.e. where _() and test_i18ngrep is present).
Have fun! :)
...Johan
Johan Herland (8): Add several testcases for --dirstat and friends Make --dirstat=0 output directories that contribute < 0.1% of changes Refactor --dirstat parsing; deprecate --cumulative and --dirstat-by-file Add config variable for specifying default --dirstat behavior Allow specifying --dirstat cut-off percentage as a floating point number New --dirstat=lines mode, doing dirstat analysis based on diffstat Improve error handling when parsing dirstat parameters Mark dirstat error messages for translation
Documentation/config.txt | 44 ++ Documentation/diff-options.txt | 54 ++- diff.c | 171 +++++++- diff.h | 3 +- t/t4047-diff-dirstat.sh | 979 ++++++++++++++++++++++++++++++++++++++++ 5 files changed, 1219 insertions(+), 32 deletions(-) create mode 100755 t/t4047-diff-dirstat.sh
-- 1.7.5.rc1.3.g4d7b