Re: [PATCH] stripspace: add --line-count flag
- From
Sidhant Sharma <tigerkid001@gmail.com>
- Date
- Mar 4, 2016, 18:43 UTC
- Message-ID
- <56D9D750.1030703@gmail.com>
- In-Reply-To
- <1457116723-20206-1-git-send-email-tigerkid001@gmail.com>
> builtin/stripspace.c | 22 +++++++++++++++++++++- > git-rebase--interactive.sh | 6 +++--- > 2 files changed, 24 insertions(+), 4 deletions(-) >
This is my first attempt at the small project listed here: https://git.wiki.kernel.org/index.php/SmallProjectsIdeas#implement_.27--count-lines.27_in_.27git_stripspace.27. With this, --line-count can be used with stripspace, instead of having to pipe its output to `wc -l` in git-rebase--interactive.sh. I went with --line-count and not --count-lines since its short form (-c) is already in use, and I think -l is more apt for this. Comments?
Thanks and regards, Sidhant Sharma [:tk]